~ctwm/ctwm/trunk

« back to all changes in this revision

Viewing changes to functions_workspaces.c

  • Committer: Matthew Fuller
  • Date: 2016-08-16 10:37:18 UTC
  • mfrom: (514.2.49 build)
  • Revision ID: fullermd@over-yonder.net-20160816103718-7ay3cpxxzlkaw1er
Implement a parallel minimal build system, which can at least yield a
runnable ctwm in situations where the cmake chain is unavailable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
 
        GotoWorkSpaceByName(Scr->currentvs, action);
94
 
}
95
 
 
96
 
DFHANDLER(prevworkspace)
97
 
{
98
 
        GotoPrevWorkSpace(Scr->currentvs);
99
 
}
100
 
 
101
 
DFHANDLER(nextworkspace)
102
 
{
103
 
        GotoNextWorkSpace(Scr->currentvs);
104
 
}
105
 
 
106
 
DFHANDLER(rightworkspace)
107
 
{
108
 
        GotoRightWorkSpace(Scr->currentvs);
109
 
}
110
 
 
111
 
DFHANDLER(leftworkspace)
112
 
{
113
 
        GotoLeftWorkSpace(Scr->currentvs);
114
 
}
115
 
 
116
 
DFHANDLER(upworkspace)
117
 
{
118
 
        GotoUpWorkSpace(Scr->currentvs);
119
 
}
120
 
 
121
 
DFHANDLER(downworkspace)
122
 
{
123
 
        GotoDownWorkSpace(Scr->currentvs);
124
 
}