CTWM
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
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 */
22
27
28
29/*
30 * Selecting a window and passing a specific workspace as the function
31 * arg.
32 */
37
42
47
48
49/*
50 * Pushing a window away from / pulling it to "here".
51 */
56
58{
59 WMgrAddToCurrentWorkSpaceAndWarp(Scr->currentvs, action);
60}
61
62
63/*
64 * Pushing a window away somewhere and potentially following it.
65 */
70
75
80
85
86
87
88/*
89 * Switching to other workspaces.
90 */
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
101{
102 GotoPrevWorkSpace(Scr->currentvs);
103}
104
106{
107 GotoNextWorkSpace(Scr->currentvs);
108}
109
111{
112 GotoRightWorkSpace(Scr->currentvs);
113}
114
116{
117 GotoLeftWorkSpace(Scr->currentvs);
118}
119
121{
122 GotoUpWorkSpace(Scr->currentvs);
123}
124
126{
127 GotoDownWorkSpace(Scr->currentvs);
128}
static int PlaceX
Definition add_window.c:82
#define Scr
#define DFHANDLER(func)
void Occupy(TwmWindow *twm_win)
void RemoveFromWorkSpace(char *wname, TwmWindow *twm_win)
Definition occupation.c:309
void OccupyAll(TwmWindow *twm_win)
Definition occupation.c:549
void AddToWorkSpace(char *wname, TwmWindow *twm_win)
Definition occupation.c:283
void MoveToPrevWorkSpace(VirtualScreen *vs, TwmWindow *twm_win)
Definition occupation.c:394
void MoveToNextWorkSpace(VirtualScreen *vs, TwmWindow *twm_win)
Definition occupation.c:356
void WMgrRemoveFromCurrentWorkSpace(VirtualScreen *vs, TwmWindow *win)
Definition occupation.c:466
void MoveToNextWorkSpaceAndFollow(VirtualScreen *vs, TwmWindow *twm_win)
Definition occupation.c:378
void MoveToPrevWorkSpaceAndFollow(VirtualScreen *vs, TwmWindow *twm_win)
Definition occupation.c:422
void ToggleOccupation(char *wname, TwmWindow *twm_win)
Definition occupation.c:332
void WMgrAddToCurrentWorkSpaceAndWarp(VirtualScreen *vs, char *winname)
Definition occupation.c:491
void GotoPrevWorkSpace(VirtualScreen *vs)
void GotoRightWorkSpace(VirtualScreen *vs)
void GotoWorkSpaceByName(VirtualScreen *vs, const char *wname)
void GotoLeftWorkSpace(VirtualScreen *vs)
void GotoDownWorkSpace(VirtualScreen *vs)
void GotoNextWorkSpace(VirtualScreen *vs)
void GotoUpWorkSpace(VirtualScreen *vs)