CTWM
Toggle main menu visibility
Loading...
Searching...
No Matches
/usr/src/RPM/BUILD/ctwm-4.1.0/functions_workspaces.c
Go to the documentation of this file.
1
/*
2
* Functions related to window occupation and workspaces. Not the
3
* workspace manager itself; that's off with the icon managers.
4
*/
5
6
#include "
ctwm.h
"
7
8
#include "
functions_internal.h
"
9
#include "
screen.h
"
10
#include "
occupation.h
"
11
#include "
workspace_utils.h
"
12
13
14
15
/*
16
* Setting occupation on a specific window.
17
*/
18
DFHANDLER
(occupy)
19
{
20
Occupy
(tmp_win);
21
}
22
23
DFHANDLER
(occupyall)
24
{
25
OccupyAll
(tmp_win);
26
}
27
28
29
/*
30
* Selecting a window and passing a specific workspace as the function
31
* arg.
32
*/
33
DFHANDLER
(addtoworkspace)
34
{
35
AddToWorkSpace
(action, tmp_win);
36
}
37
38
DFHANDLER
(removefromworkspace)
39
{
40
RemoveFromWorkSpace
(action, tmp_win);
41
}
42
43
DFHANDLER
(toggleoccupation)
44
{
45
ToggleOccupation
(action, tmp_win);
46
}
47
48
49
/*
50
* Pushing a window away from / pulling it to "here".
51
*/
52
DFHANDLER
(vanish)
53
{
54
WMgrRemoveFromCurrentWorkSpace
(
Scr
->currentvs, tmp_win);
55
}
56
57
DFHANDLER
(warphere)
58
{
59
WMgrAddToCurrentWorkSpaceAndWarp
(
Scr
->currentvs, action);
60
}
61
62
63
/*
64
* Pushing a window away somewhere and potentially following it.
65
*/
66
DFHANDLER
(movetonextworkspace)
67
{
68
MoveToNextWorkSpace
(
Scr
->currentvs, tmp_win);
69
}
70
71
DFHANDLER
(movetoprevworkspace)
72
{
73
MoveToPrevWorkSpace
(
Scr
->currentvs, tmp_win);
74
}
75
76
DFHANDLER
(movetonextworkspaceandfollow)
77
{
78
MoveToNextWorkSpaceAndFollow
(
Scr
->currentvs, tmp_win);
79
}
80
81
DFHANDLER
(movetoprevworkspaceandfollow)
82
{
83
MoveToPrevWorkSpaceAndFollow
(
Scr
->currentvs, tmp_win);
84
}
85
86
87
88
/*
89
* Switching to other workspaces.
90
*/
91
DFHANDLER
(gotoworkspace)
92
{
93
/*
94
* n.b.: referenced in the Developer Manual in doc/devman/; if you
95
* make any changes here be sure to tweak that if necessary.
96
*/
97
GotoWorkSpaceByName
(
Scr
->currentvs, action);
98
}
99
100
DFHANDLER
(prevworkspace)
101
{
102
GotoPrevWorkSpace
(
Scr
->currentvs);
103
}
104
105
DFHANDLER
(nextworkspace)
106
{
107
GotoNextWorkSpace
(
Scr
->currentvs);
108
}
109
110
DFHANDLER
(rightworkspace)
111
{
112
GotoRightWorkSpace
(
Scr
->currentvs);
113
}
114
115
DFHANDLER
(leftworkspace)
116
{
117
GotoLeftWorkSpace
(
Scr
->currentvs);
118
}
119
120
DFHANDLER
(upworkspace)
121
{
122
GotoUpWorkSpace
(
Scr
->currentvs);
123
}
124
125
DFHANDLER
(downworkspace)
126
{
127
GotoDownWorkSpace
(
Scr
->currentvs);
128
}
ctwm.h
Scr
#define Scr
functions_internal.h
DFHANDLER
#define DFHANDLER(func)
Definition
functions_internal.h:19
Occupy
void Occupy(TwmWindow *twm_win)
Definition
occupation.c:1073
RemoveFromWorkSpace
void RemoveFromWorkSpace(char *wname, TwmWindow *twm_win)
Definition
occupation.c:309
OccupyAll
void OccupyAll(TwmWindow *twm_win)
Definition
occupation.c:549
AddToWorkSpace
void AddToWorkSpace(char *wname, TwmWindow *twm_win)
Definition
occupation.c:283
MoveToPrevWorkSpace
void MoveToPrevWorkSpace(VirtualScreen *vs, TwmWindow *twm_win)
Definition
occupation.c:394
MoveToNextWorkSpace
void MoveToNextWorkSpace(VirtualScreen *vs, TwmWindow *twm_win)
Definition
occupation.c:356
WMgrRemoveFromCurrentWorkSpace
void WMgrRemoveFromCurrentWorkSpace(VirtualScreen *vs, TwmWindow *win)
Definition
occupation.c:466
MoveToNextWorkSpaceAndFollow
void MoveToNextWorkSpaceAndFollow(VirtualScreen *vs, TwmWindow *twm_win)
Definition
occupation.c:378
MoveToPrevWorkSpaceAndFollow
void MoveToPrevWorkSpaceAndFollow(VirtualScreen *vs, TwmWindow *twm_win)
Definition
occupation.c:422
ToggleOccupation
void ToggleOccupation(char *wname, TwmWindow *twm_win)
Definition
occupation.c:332
WMgrAddToCurrentWorkSpaceAndWarp
void WMgrAddToCurrentWorkSpaceAndWarp(VirtualScreen *vs, char *winname)
Definition
occupation.c:491
occupation.h
screen.h
GotoPrevWorkSpace
void GotoPrevWorkSpace(VirtualScreen *vs)
Definition
workspace_utils.c:354
GotoRightWorkSpace
void GotoRightWorkSpace(VirtualScreen *vs)
Definition
workspace_utils.c:388
GotoWorkSpaceByName
void GotoWorkSpaceByName(VirtualScreen *vs, const char *wname)
Definition
workspace_utils.c:320
GotoLeftWorkSpace
void GotoLeftWorkSpace(VirtualScreen *vs)
Definition
workspace_utils.c:412
GotoDownWorkSpace
void GotoDownWorkSpace(VirtualScreen *vs)
Definition
workspace_utils.c:457
GotoNextWorkSpace
void GotoNextWorkSpace(VirtualScreen *vs)
Definition
workspace_utils.c:375
GotoUpWorkSpace
void GotoUpWorkSpace(VirtualScreen *vs)
Definition
workspace_utils.c:432
workspace_utils.h
functions_workspaces.c
Generated by
1.18.0