1
0
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:
dan
2003-07-05 02:39:37 +00:00
parent b0d72a3db2
commit bd7943d9a7
5 changed files with 69 additions and 31 deletions

View File

@@ -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) {