mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-24 07:02:30 +01:00
wmaker: Add keyboard shortcuts for keeping window on top or at bottom.
This closes Debian bug #306808 [1]. [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=306808
This commit is contained in:
committed by
Carlos R. Mafra
parent
65802d3402
commit
563cda28d3
21
src/event.c
21
src/event.c
@@ -1564,6 +1564,27 @@ static void handleKeyPress(XEvent * event)
|
||||
handleMaximize(wwin, MAX_MAXIMUS | MAX_KEYBOARD);
|
||||
}
|
||||
break;
|
||||
case WKBD_KEEP_ON_TOP:
|
||||
if (ISMAPPED(wwin) && ISFOCUSED(wwin)) {
|
||||
CloseWindowMenu(scr);
|
||||
|
||||
if (wwin->frame->core->stacking->window_level != WMFloatingLevel)
|
||||
ChangeStackingLevel(wwin->frame->core, WMFloatingLevel);
|
||||
else
|
||||
ChangeStackingLevel(wwin->frame->core, WMNormalLevel);
|
||||
}
|
||||
break;
|
||||
|
||||
case WKBD_KEEP_AT_BOTTOM:
|
||||
if (ISMAPPED(wwin) && ISFOCUSED(wwin)) {
|
||||
CloseWindowMenu(scr);
|
||||
|
||||
if (wwin->frame->core->stacking->window_level != WMSunkenLevel)
|
||||
ChangeStackingLevel(wwin->frame->core, WMSunkenLevel);
|
||||
else
|
||||
ChangeStackingLevel(wwin->frame->core, WMNormalLevel);
|
||||
}
|
||||
break;
|
||||
case WKBD_OMNIPRESENT:
|
||||
if (ISMAPPED(wwin) && ISFOCUSED(wwin)) {
|
||||
CloseWindowMenu(scr);
|
||||
|
||||
Reference in New Issue
Block a user