mirror of
https://github.com/labwc/labwc.git
synced 2026-03-21 05:33:52 -04:00
src/workspaces.c: allow dragged views to be moved to other workspaces
This commit is contained in:
parent
d12751c781
commit
e72f862650
1 changed files with 5 additions and 0 deletions
|
|
@ -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_is_always_on_top(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.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue