mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-22 05:48:01 +01:00
- changed behaviour of control/shift double click on titlebar for maximize
This commit is contained in:
@@ -2830,10 +2830,11 @@ titlebarDblClick(WCoreWindow *sender, void *data, XEvent *event)
|
||||
|
||||
/* maximize window */
|
||||
if (dir !=0 && !WFLAGP(wwin, no_resizable)) {
|
||||
if (wwin->flags.maximized)
|
||||
int ndir = dir ^ wwin->flags.maximized;
|
||||
if (wwin->flags.maximized != 0)
|
||||
wUnmaximizeWindow(wwin);
|
||||
else
|
||||
wMaximizeWindow(wwin, dir);
|
||||
if (ndir != 0)
|
||||
wMaximizeWindow(wwin, ndir);
|
||||
}
|
||||
}
|
||||
} else if (event->xbutton.button==Button3) {
|
||||
|
||||
Reference in New Issue
Block a user