Left Half / Right Half Maximize
[wmaker-crm.git] / src / keybind.h
Commit [+]AuthorDateLineData
9d2e6ef9 scottc1998-09-29 22:36:29 +00001/*
9af1c6c4 dan1998-10-21 14:43:47 +00002 * Window Maker window manager
9d2e6ef9 scottc1998-09-29 22:36:29 +00003 *
4153e2fd dan2003-01-16 23:30:45 +00004 * Copyright (c) 1997-2003 Alfredo K. Kojima
6830b057 dan2004-10-12 21:28:27 +00005 *
9d2e6ef9 scottc1998-09-29 22:36:29 +00006 * 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.
10 *
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.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
6830b057 dan2004-10-12 21:28:27 +000018 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
9d2e6ef9 scottc1998-09-29 22:36:29 +000019 * USA.
20 */
21
0261c326 dan1999-01-06 15:22:33 +000022
23
9d2e6ef9 scottc1998-09-29 22:36:29 +000024/* anywhere */
25#define WKBD_ROOTMENU 0
26#define WKBD_WINDOWMENU 1
27#define WKBD_WINDOWLIST 2
28/* window */
29#define WKBD_MINIATURIZE 3
30#define WKBD_HIDE 4
96f8ab16 dan2002-01-04 05:44:20 +000031#define WKBD_HIDE_OTHERS 5
32#define WKBD_MAXIMIZE 6
33#define WKBD_VMAXIMIZE 7
34#define WKBD_HMAXIMIZE 8
69244548
JH
Johann Haarhoff2009-08-28 21:31:26 +020035#define WKBD_LHMAXIMIZE 9
36#define WKBD_RHMAXIMIZE 10
37#define WKBD_SELECT 11
9d2e6ef9 scottc1998-09-29 22:36:29 +000038/* Clip */
69244548
JH
Johann Haarhoff2009-08-28 21:31:26 +020039#define WKBD_CLIPLOWER 12
40#define WKBD_CLIPRAISE 13
41#define WKBD_CLIPRAISELOWER 14
0261c326 dan1999-01-06 15:22:33 +000042/* window */
69244548
JH
Johann Haarhoff2009-08-28 21:31:26 +020043#define WKBD_RAISE 15
44#define WKBD_LOWER 16
45#define WKBD_RAISELOWER 17
46#define WKBD_MOVERESIZE 18
47#define WKBD_SHADE 19
9d2e6ef9 scottc1998-09-29 22:36:29 +000048/* window, menu */
69244548 Johann Haarhoff2009-08-28 21:31:26 +020049#define WKBD_CLOSE 20
9d2e6ef9 scottc1998-09-29 22:36:29 +000050/* window */
69244548
JH
Johann Haarhoff2009-08-28 21:31:26 +020051#define WKBD_FOCUSNEXT 21
52#define WKBD_FOCUSPREV 22
9d2e6ef9 scottc1998-09-29 22:36:29 +000053
69244548
JH
Johann Haarhoff2009-08-28 21:31:26 +020054#define WKBD_WORKSPACE1 23
55#define WKBD_WORKSPACE2 24
56#define WKBD_WORKSPACE3 25
57#define WKBD_WORKSPACE4 26
58#define WKBD_WORKSPACE5 27
59#define WKBD_WORKSPACE6 28
60#define WKBD_WORKSPACE7 29
61#define WKBD_WORKSPACE8 30
62#define WKBD_WORKSPACE9 31
63#define WKBD_WORKSPACE10 32
64#define WKBD_NEXTWORKSPACE 33
65#define WKBD_PREVWORKSPACE 34
66#define WKBD_NEXTWSLAYER 35
67#define WKBD_PREVWSLAYER 36
9d2e6ef9 scottc1998-09-29 22:36:29 +000068
59eb9475 dan1998-11-03 12:53:26 +000069/* window shortcuts */
69244548
JH
Johann Haarhoff2009-08-28 21:31:26 +020070#define WKBD_WINDOW1 37
71#define WKBD_WINDOW2 38
72#define WKBD_WINDOW3 39
73#define WKBD_WINDOW4 40
74#define WKBD_WINDOW5 41
75#define WKBD_WINDOW6 42
76#define WKBD_WINDOW7 43
77#define WKBD_WINDOW8 44
78#define WKBD_WINDOW9 45
79#define WKBD_WINDOW10 46
d9d5a522 kojima2000-11-09 17:42:20 +000080
69244548 Johann Haarhoff2009-08-28 21:31:26 +020081#define WKBD_SWITCH_SCREEN 47
d9d5a522 kojima2000-11-09 17:42:20 +000082
83#ifdef KEEP_XKB_LOCK_STATUS
69244548
JH
Johann Haarhoff2009-08-28 21:31:26 +020084# define WKBD_TOGGLE 48
85# define WKBD_TMP 49
d9d5a522 kojima2000-11-09 17:42:20 +000086#else
69244548 Johann Haarhoff2009-08-28 21:31:26 +020087# define WKBD_TMP 48
9aca0d5f dan2004-10-12 01:34:32 +000088#endif
89
90#ifdef VIRTUAL_DESKTOP
91# define WKBD_VDESK_LEFT WKBD_TMP
92# define WKBD_VDESK_RIGHT (WKBD_TMP+1)
93# define WKBD_VDESK_UP (WKBD_TMP+2)
94# define WKBD_VDESK_DOWN (WKBD_TMP+3)
95# define WKBD_LAST (WKBD_TMP+4)
96#else
97# define WKBD_LAST WKBD_TMP
98#endif /* VIRTUAL_DESKTOP */
9d2e6ef9 scottc1998-09-29 22:36:29 +000099
100
101typedef struct WShortKey {
102 unsigned int modifier;
103 KeyCode keycode;
104} WShortKey;
105
106void wKeyboardInitialize();