WINGs: fix memory leak in getStreamObjects (Coverity #50119)
[wmaker-crm.git] / src / keybind.h
blob37ace18634564e34e5ebfa2a995f578aae953bdd
1 /*
2 * Window Maker window manager
4 * Copyright (c) 1997-2003 Alfredo K. Kojima
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 #ifndef WMKEYBIND_H
22 #define WMKEYBIND_H
24 enum {
25 /* anywhere */
26 WKBD_ROOTMENU,
27 WKBD_WINDOWMENU,
28 WKBD_WINDOWLIST,
30 /* window */
31 WKBD_MINIATURIZE,
32 WKBD_MINIMIZEALL,
33 WKBD_HIDE,
34 WKBD_HIDE_OTHERS,
35 WKBD_MAXIMIZE,
36 WKBD_VMAXIMIZE,
37 WKBD_HMAXIMIZE,
38 WKBD_LHMAXIMIZE,
39 WKBD_RHMAXIMIZE,
40 WKBD_THMAXIMIZE,
41 WKBD_BHMAXIMIZE,
42 WKBD_LTCMAXIMIZE,
43 WKBD_RTCMAXIMIZE,
44 WKBD_LBCMAXIMIZE,
45 WKBD_RBCMAXIMIZE,
46 WKBD_MAXIMUS,
47 WKBD_SELECT,
48 WKBD_RAISE,
49 WKBD_LOWER,
50 WKBD_RAISELOWER,
51 WKBD_MOVERESIZE,
52 WKBD_SHADE,
53 WKBD_FOCUSNEXT,
54 WKBD_FOCUSPREV,
55 WKBD_GROUPNEXT,
56 WKBD_GROUPPREV,
58 /* window, menu */
59 WKBD_CLOSE,
61 /* Dock */
62 WKBD_DOCKRAISELOWER,
64 /* Clip */
65 WKBD_CLIPRAISELOWER,
67 /* workspace */
68 WKBD_WORKSPACE1,
69 WKBD_WORKSPACE2,
70 WKBD_WORKSPACE3,
71 WKBD_WORKSPACE4,
72 WKBD_WORKSPACE5,
73 WKBD_WORKSPACE6,
74 WKBD_WORKSPACE7,
75 WKBD_WORKSPACE8,
76 WKBD_WORKSPACE9,
77 WKBD_WORKSPACE10,
78 WKBD_NEXTWORKSPACE,
79 WKBD_PREVWORKSPACE,
80 WKBD_LASTWORKSPACE,
81 WKBD_NEXTWSLAYER,
82 WKBD_PREVWSLAYER,
84 /* move to workspace */
85 WKBD_MOVE_WORKSPACE1,
86 WKBD_MOVE_WORKSPACE2,
87 WKBD_MOVE_WORKSPACE3,
88 WKBD_MOVE_WORKSPACE4,
89 WKBD_MOVE_WORKSPACE5,
90 WKBD_MOVE_WORKSPACE6,
91 WKBD_MOVE_WORKSPACE7,
92 WKBD_MOVE_WORKSPACE8,
93 WKBD_MOVE_WORKSPACE9,
94 WKBD_MOVE_WORKSPACE10,
95 WKBD_MOVE_NEXTWORKSPACE,
96 WKBD_MOVE_PREVWORKSPACE,
97 WKBD_MOVE_LASTWORKSPACE,
98 WKBD_MOVE_NEXTWSLAYER,
99 WKBD_MOVE_PREVWSLAYER,
101 /* window shortcuts */
102 WKBD_WINDOW1,
103 WKBD_WINDOW2,
104 WKBD_WINDOW3,
105 WKBD_WINDOW4,
106 WKBD_WINDOW5,
107 WKBD_WINDOW6,
108 WKBD_WINDOW7,
109 WKBD_WINDOW8,
110 WKBD_WINDOW9,
111 WKBD_WINDOW10,
113 /* launch a new instance of the active window */
114 WKBD_RELAUNCH,
116 /* screen */
117 WKBD_SWITCH_SCREEN,
119 /* open "run" dialog */
120 WKBD_RUN,
122 #ifdef KEEP_XKB_LOCK_STATUS
123 WKBD_TOGGLE,
124 #endif
125 /* keep this last */
126 WKBD_LAST
129 typedef struct WShortKey {
130 unsigned int modifier;
131 KeyCode keycode;
132 } WShortKey;
134 /* ---[ Global Variables ]------------------------------------------------ */
136 extern WShortKey wKeyBindings[WKBD_LAST];
138 /* ---[ Functions ]------------------------------------------------------- */
140 void wKeyboardInitialize(void);
142 #endif /* WMKEYBIND_H */