2
* Functions related to window occupation and workspaces. Not the
3
* workspace manager itself; that's off with the icon managers.
8
#include "functions_internal.h"
10
#include "occupation.h"
11
#include "workspace_utils.h"
16
* Setting occupation on a specific window.
30
* Selecting a window and passing a specific workspace as the function
33
DFHANDLER(addtoworkspace)
35
AddToWorkSpace(action, tmp_win);
38
DFHANDLER(removefromworkspace)
40
RemoveFromWorkSpace(action, tmp_win);
43
DFHANDLER(toggleoccupation)
45
ToggleOccupation(action, tmp_win);
50
* Pushing a window away from / pulling it to "here".
54
WMgrRemoveFromCurrentWorkSpace(Scr->currentvs, tmp_win);
59
WMgrAddToCurrentWorkSpaceAndWarp(Scr->currentvs, action);
64
* Pushing a window away somewhere and potentially following it.
66
DFHANDLER(movetonextworkspace)
68
MoveToNextWorkSpace(Scr->currentvs, tmp_win);
71
DFHANDLER(movetoprevworkspace)
73
MoveToPrevWorkSpace(Scr->currentvs, tmp_win);
76
DFHANDLER(movetonextworkspaceandfollow)
78
MoveToNextWorkSpaceAndFollow(Scr->currentvs, tmp_win);
81
DFHANDLER(movetoprevworkspaceandfollow)
83
MoveToPrevWorkSpaceAndFollow(Scr->currentvs, tmp_win);
89
* Switching to other workspaces.
91
DFHANDLER(gotoworkspace)
93
GotoWorkSpaceByName(Scr->currentvs, action);
96
DFHANDLER(prevworkspace)
98
GotoPrevWorkSpace(Scr->currentvs);
101
DFHANDLER(nextworkspace)
103
GotoNextWorkSpace(Scr->currentvs);
106
DFHANDLER(rightworkspace)
108
GotoRightWorkSpace(Scr->currentvs);
111
DFHANDLER(leftworkspace)
113
GotoLeftWorkSpace(Scr->currentvs);
116
DFHANDLER(upworkspace)
118
GotoUpWorkSpace(Scr->currentvs);
121
DFHANDLER(downworkspace)
123
GotoDownWorkSpace(Scr->currentvs);