mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01: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:
committed by
Carlos R. Mafra
parent
7ef8178d2a
commit
b6689a0108
@@ -116,6 +116,7 @@ static char *keyOptions[] = {
|
|||||||
"VirtualEdgeUpKey",
|
"VirtualEdgeUpKey",
|
||||||
"VirtualEdgeDownKey",
|
"VirtualEdgeDownKey",
|
||||||
#endif
|
#endif
|
||||||
|
"DockRaiseLowerKey",
|
||||||
"ClipRaiseKey",
|
"ClipRaiseKey",
|
||||||
"ClipLowerKey",
|
"ClipLowerKey",
|
||||||
#ifndef XKB_MODELOCK
|
#ifndef XKB_MODELOCK
|
||||||
@@ -522,6 +523,7 @@ static void createPanel(Panel * p)
|
|||||||
WMAddListItem(panel->actLs, _("Move VirtualDesktop to next top edge"));
|
WMAddListItem(panel->actLs, _("Move VirtualDesktop to next top edge"));
|
||||||
WMAddListItem(panel->actLs, _("Move VirtualDesktop to next bottom edge"));
|
WMAddListItem(panel->actLs, _("Move VirtualDesktop to next bottom edge"));
|
||||||
#endif
|
#endif
|
||||||
|
WMAddListItem(panel->actLs, _("Raise/Lower Dock"));
|
||||||
WMAddListItem(panel->actLs, _("Raise Clip"));
|
WMAddListItem(panel->actLs, _("Raise Clip"));
|
||||||
WMAddListItem(panel->actLs, _("Lower Clip"));
|
WMAddListItem(panel->actLs, _("Lower Clip"));
|
||||||
WMAddListItem(panel->actLs, _("Raise/Lower Clip"));
|
WMAddListItem(panel->actLs, _("Raise/Lower Clip"));
|
||||||
|
|||||||
@@ -102,6 +102,7 @@
|
|||||||
ClipLowerKey = None;
|
ClipLowerKey = None;
|
||||||
ClipRaiseKey = None;
|
ClipRaiseKey = None;
|
||||||
ConstrainWindowSize = NO;
|
ConstrainWindowSize = NO;
|
||||||
|
DockRaiseLowerKey = None;
|
||||||
ClipRaiseLowerKey = None;
|
ClipRaiseLowerKey = None;
|
||||||
TitleJustify = center;
|
TitleJustify = center;
|
||||||
WindowTitleFont = "Sans:bold:pixelsize=12";
|
WindowTitleFont = "Sans:bold:pixelsize=12";
|
||||||
|
|||||||
@@ -559,6 +559,8 @@ WDefaultEntry optionList[] = {
|
|||||||
NULL, getKeybind, setKeyGrab},
|
NULL, getKeybind, setKeyGrab},
|
||||||
{"WindowMenuKey", "None", (void *)WKBD_WINDOWMENU,
|
{"WindowMenuKey", "None", (void *)WKBD_WINDOWMENU,
|
||||||
NULL, getKeybind, setKeyGrab},
|
NULL, getKeybind, setKeyGrab},
|
||||||
|
{"DockRaiseLowerKey", "None", (void*)WKBD_DOCKRAISELOWER,
|
||||||
|
NULL, getKeybind, setKeyGrab},
|
||||||
{"ClipLowerKey", "None", (void *)WKBD_CLIPLOWER,
|
{"ClipLowerKey", "None", (void *)WKBD_CLIPLOWER,
|
||||||
NULL, getKeybind, setKeyGrab},
|
NULL, getKeybind, setKeyGrab},
|
||||||
{"ClipRaiseKey", "None", (void *)WKBD_CLIPRAISE,
|
{"ClipRaiseKey", "None", (void *)WKBD_CLIPRAISE,
|
||||||
|
|||||||
@@ -1690,6 +1690,10 @@ static void handleKeyPress(XEvent * event)
|
|||||||
if (!wPreferences.flags.noclip)
|
if (!wPreferences.flags.noclip)
|
||||||
wDockRaiseLower(scr->workspaces[scr->current_workspace]->clip);
|
wDockRaiseLower(scr->workspaces[scr->current_workspace]->clip);
|
||||||
break;
|
break;
|
||||||
|
case WKBD_DOCKRAISELOWER:
|
||||||
|
if (!wPreferences.flags.nodock)
|
||||||
|
wDockRaiseLower(scr->dock);
|
||||||
|
break;
|
||||||
#ifdef KEEP_XKB_LOCK_STATUS
|
#ifdef KEEP_XKB_LOCK_STATUS
|
||||||
case WKBD_TOGGLE:
|
case WKBD_TOGGLE:
|
||||||
if (wPreferences.modelock) {
|
if (wPreferences.modelock) {
|
||||||
|
|||||||
@@ -50,6 +50,9 @@ enum {
|
|||||||
/* window, menu */
|
/* window, menu */
|
||||||
WKBD_CLOSE,
|
WKBD_CLOSE,
|
||||||
|
|
||||||
|
/* Dock */
|
||||||
|
WKBD_DOCKRAISELOWER,
|
||||||
|
|
||||||
/* Clip */
|
/* Clip */
|
||||||
WKBD_CLIPLOWER,
|
WKBD_CLIPLOWER,
|
||||||
WKBD_CLIPRAISE,
|
WKBD_CLIPRAISE,
|
||||||
|
|||||||
Reference in New Issue
Block a user