mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
- Implemented a better logic to preserve the window's old geometry when
maximizing to support succesive maximizations in different directions without the need to do an intermediary un-maximize step (eliminates flicker) - Made keyboard/mouse maximization behavior consinstent relative to each other
This commit is contained in:
10
src/window.c
10
src/window.c
@@ -3095,10 +3095,12 @@ titlebarDblClick(WCoreWindow *sender, void *data, XEvent *event)
|
||||
/* maximize window */
|
||||
if (dir!=0 && !WFLAGP(wwin, no_resizable)) {
|
||||
int ndir = dir ^ wwin->flags.maximized;
|
||||
if (wwin->flags.maximized != 0)
|
||||
wUnmaximizeWindow(wwin);
|
||||
if (ndir != 0)
|
||||
wMaximizeWindow(wwin, ndir);
|
||||
|
||||
if (ndir != 0) {
|
||||
wMaximizeWindow(wwin, ndir);
|
||||
} else {
|
||||
wUnmaximizeWindow(wwin);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (event->xbutton.button==Button3) {
|
||||
|
||||
Reference in New Issue
Block a user