mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-27 00:42:32 +01:00
wmaker: Support omnipresent setting toggle from keyboard
This commit is contained in:
committed by
Carlos R. Mafra
parent
33855a7a12
commit
7cb948098a
@@ -649,6 +649,8 @@ WDefaultEntry optionList[] = {
|
||||
NULL, getKeybind, setKeyGrab, NULL, NULL},
|
||||
{"MaximusKey", "None", (void*)WKBD_MAXIMUS,
|
||||
NULL, getKeybind, setKeyGrab, NULL, NULL},
|
||||
{"OmnipresentKey", "None", (void *)WKBD_OMNIPRESENT,
|
||||
NULL, getKeybind, setKeyGrab, NULL, NULL},
|
||||
{"RaiseKey", "\"Meta+Up\"", (void *)WKBD_RAISE,
|
||||
NULL, getKeybind, setKeyGrab, NULL, NULL},
|
||||
{"LowerKey", "\"Meta+Down\"", (void *)WKBD_LOWER,
|
||||
|
||||
@@ -1543,6 +1543,13 @@ static void handleKeyPress(XEvent * event)
|
||||
handleMaximize(wwin, MAX_MAXIMUS | MAX_KEYBOARD);
|
||||
}
|
||||
break;
|
||||
case WKBD_OMNIPRESENT:
|
||||
if (ISMAPPED(wwin) && ISFOCUSED(wwin)) {
|
||||
CloseWindowMenu(scr);
|
||||
|
||||
wWindowSetOmnipresent(wwin, !wwin->flags.omnipresent);
|
||||
}
|
||||
break;
|
||||
case WKBD_RAISE:
|
||||
if (ISMAPPED(wwin) && ISFOCUSED(wwin)) {
|
||||
CloseWindowMenu(scr);
|
||||
|
||||
@@ -63,6 +63,7 @@ enum {
|
||||
WKBD_RBCMAXIMIZE,
|
||||
WKBD_MAXIMUS,
|
||||
WKBD_SELECT,
|
||||
WKBD_OMNIPRESENT,
|
||||
WKBD_RAISE,
|
||||
WKBD_LOWER,
|
||||
WKBD_RAISELOWER,
|
||||
|
||||
Reference in New Issue
Block a user