Allow dragged views to be moved to other workspaces

This commit is contained in:
johannes 2025-06-27 09:03:42 +02:00
parent aedf279656
commit d70af0896b

View file

@ -443,6 +443,11 @@ workspaces_switch_to(struct workspace *target, bool update_focus)
/* Make sure new views will spawn on the new workspace */ /* Make sure new views will spawn on the new workspace */
server->workspaces.current = target; server->workspaces.current = target;
struct view *grabbed_view = server->grabbed_view;
if(grabbed_view) {
view_move_to_workspace(grabbed_view, target);
}
/* /*
* Make sure we are focusing what the user sees. Only refocus if * Make sure we are focusing what the user sees. Only refocus if
* the focus is not already on an omnipresent or always-on-top view. * the focus is not already on an omnipresent or always-on-top view.