1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-05-11 19:48:35 +02:00

Keyboard shortcut to raise the dock

This patch adds the DockRaiseLowerKey shortcut, which raises/lowers
the dock depending on whether the dock is lowered/raised.

[crmafra: Reformatted Brad's patch against git repo and removed the
 DockRaiseKey and DockLowerKey shortcuts ]
This commit is contained in:
Brad Jorsch
2010-01-06 12:50:36 -05:00
committed by Carlos R. Mafra
parent 7ef8178d2a
commit b6689a0108
5 changed files with 12 additions and 0 deletions
+2
View File
@@ -559,6 +559,8 @@ WDefaultEntry optionList[] = {
NULL, getKeybind, setKeyGrab},
{"WindowMenuKey", "None", (void *)WKBD_WINDOWMENU,
NULL, getKeybind, setKeyGrab},
{"DockRaiseLowerKey", "None", (void*)WKBD_DOCKRAISELOWER,
NULL, getKeybind, setKeyGrab},
{"ClipLowerKey", "None", (void *)WKBD_CLIPLOWER,
NULL, getKeybind, setKeyGrab},
{"ClipRaiseKey", "None", (void *)WKBD_CLIPRAISE,
+4
View File
@@ -1690,6 +1690,10 @@ static void handleKeyPress(XEvent * event)
if (!wPreferences.flags.noclip)
wDockRaiseLower(scr->workspaces[scr->current_workspace]->clip);
break;
case WKBD_DOCKRAISELOWER:
if (!wPreferences.flags.nodock)
wDockRaiseLower(scr->dock);
break;
#ifdef KEEP_XKB_LOCK_STATUS
case WKBD_TOGGLE:
if (wPreferences.modelock) {
+3
View File
@@ -50,6 +50,9 @@ enum {
/* window, menu */
WKBD_CLOSE,
/* Dock */
WKBD_DOCKRAISELOWER,
/* Clip */
WKBD_CLIPLOWER,
WKBD_CLIPRAISE,