mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
Remove [raise,lower]clip shortcut keys
The raising and lowering of the clip is already taken care of by the "ClipRaiseLowerKey" shortcut. wmaker gets a bit smaller for free: text data bss dec hex filename 449483 17384 8208 475075 73fc3 src/.libs/wmaker.old 449307 17256 8192 474755 73e83 src/.libs/wmaker.new
This commit is contained in:
@@ -60,7 +60,10 @@ typedef struct _Panel {
|
||||
|
||||
#define ICON_FILE "keyshortcuts"
|
||||
|
||||
/* must be in the same order as the corresponding items in actions list */
|
||||
/*
|
||||
* Must be in the same order as the corresponding items in
|
||||
* "actions list" in createPanel()
|
||||
*/
|
||||
static char *keyOptions[] = {
|
||||
"RootMenuKey",
|
||||
"WindowListKey",
|
||||
@@ -117,8 +120,6 @@ static char *keyOptions[] = {
|
||||
"VirtualEdgeDownKey",
|
||||
#endif
|
||||
"DockRaiseLowerKey",
|
||||
"ClipRaiseKey",
|
||||
"ClipLowerKey",
|
||||
#ifndef XKB_MODELOCK
|
||||
"ClipRaiseLowerKey"
|
||||
#else
|
||||
@@ -524,8 +525,6 @@ static void createPanel(Panel * p)
|
||||
WMAddListItem(panel->actLs, _("Move VirtualDesktop to next bottom edge"));
|
||||
#endif
|
||||
WMAddListItem(panel->actLs, _("Raise/Lower Dock"));
|
||||
WMAddListItem(panel->actLs, _("Raise Clip"));
|
||||
WMAddListItem(panel->actLs, _("Lower Clip"));
|
||||
WMAddListItem(panel->actLs, _("Raise/Lower Clip"));
|
||||
#ifdef XKB_MODELOCK
|
||||
WMAddListItem(panel->actLs, _("Toggle keyboard language"));
|
||||
|
||||
@@ -99,8 +99,6 @@
|
||||
MiniaturizeKey = "Mod1+M";
|
||||
NextWorkspaceLayerKey = None;
|
||||
PrevWorkspaceLayerKey = None;
|
||||
ClipLowerKey = None;
|
||||
ClipRaiseKey = None;
|
||||
ConstrainWindowSize = NO;
|
||||
DockRaiseLowerKey = None;
|
||||
ClipRaiseLowerKey = None;
|
||||
|
||||
@@ -561,10 +561,6 @@ WDefaultEntry optionList[] = {
|
||||
NULL, getKeybind, setKeyGrab},
|
||||
{"DockRaiseLowerKey", "None", (void*)WKBD_DOCKRAISELOWER,
|
||||
NULL, getKeybind, setKeyGrab},
|
||||
{"ClipLowerKey", "None", (void *)WKBD_CLIPLOWER,
|
||||
NULL, getKeybind, setKeyGrab},
|
||||
{"ClipRaiseKey", "None", (void *)WKBD_CLIPRAISE,
|
||||
NULL, getKeybind, setKeyGrab},
|
||||
{"ClipRaiseLowerKey", "None", (void *)WKBD_CLIPRAISELOWER,
|
||||
NULL, getKeybind, setKeyGrab},
|
||||
{"MiniaturizeKey", "None", (void *)WKBD_MINIATURIZE,
|
||||
|
||||
@@ -1678,14 +1678,6 @@ static void handleKeyPress(XEvent * event)
|
||||
}
|
||||
}
|
||||
break;
|
||||
case WKBD_CLIPLOWER:
|
||||
if (!wPreferences.flags.noclip)
|
||||
wDockLower(scr->workspaces[scr->current_workspace]->clip);
|
||||
break;
|
||||
case WKBD_CLIPRAISE:
|
||||
if (!wPreferences.flags.noclip)
|
||||
wDockRaise(scr->workspaces[scr->current_workspace]->clip);
|
||||
break;
|
||||
case WKBD_CLIPRAISELOWER:
|
||||
if (!wPreferences.flags.noclip)
|
||||
wDockRaiseLower(scr->workspaces[scr->current_workspace]->clip);
|
||||
|
||||
@@ -54,8 +54,6 @@ enum {
|
||||
WKBD_DOCKRAISELOWER,
|
||||
|
||||
/* Clip */
|
||||
WKBD_CLIPLOWER,
|
||||
WKBD_CLIPRAISE,
|
||||
WKBD_CLIPRAISELOWER,
|
||||
|
||||
/* workspace */
|
||||
|
||||
Reference in New Issue
Block a user