mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 12:58:08 +01:00
added new maximize positions, top and bottom
these new positions are equal to left and right, but they are at top and bottom half of screen
This commit is contained in:
committed by
Carlos R. Mafra
parent
e20f45ef3c
commit
d025625df0
14
src/event.c
14
src/event.c
@@ -1470,6 +1470,20 @@ static void handleKeyPress(XEvent * event)
|
||||
handleMaximize(wwin, MAX_VERTICAL | MAX_RIGHTHALF | MAX_KEYBOARD);
|
||||
}
|
||||
break;
|
||||
case WKBD_THMAXIMIZE:
|
||||
if (ISMAPPED(wwin) && ISFOCUSED(wwin) && IS_RESIZABLE(wwin)) {
|
||||
CloseWindowMenu(scr);
|
||||
|
||||
handleMaximize(wwin, MAX_HORIZONTAL | MAX_TOPHALF | MAX_KEYBOARD);
|
||||
}
|
||||
break;
|
||||
case WKBD_BHMAXIMIZE:
|
||||
if (ISMAPPED(wwin) && ISFOCUSED(wwin) && IS_RESIZABLE(wwin)) {
|
||||
CloseWindowMenu(scr);
|
||||
|
||||
handleMaximize(wwin, MAX_HORIZONTAL | MAX_BOTTOMHALF | MAX_KEYBOARD);
|
||||
}
|
||||
break;
|
||||
case WKBD_MAXIMUS:
|
||||
if (ISMAPPED(wwin) && ISFOCUSED(wwin) && IS_RESIZABLE(wwin)) {
|
||||
CloseWindowMenu(scr);
|
||||
|
||||
Reference in New Issue
Block a user