mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-22 14:08:06 +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 */
|
/* maximize window */
|
||||||
if (dir !=0 && !WFLAGP(wwin, no_resizable)) {
|
if (dir !=0 && !WFLAGP(wwin, no_resizable)) {
|
||||||
if (wwin->flags.maximized)
|
int ndir = dir ^ wwin->flags.maximized;
|
||||||
|
if (wwin->flags.maximized != 0)
|
||||||
wUnmaximizeWindow(wwin);
|
wUnmaximizeWindow(wwin);
|
||||||
else
|
if (ndir != 0)
|
||||||
wMaximizeWindow(wwin, dir);
|
wMaximizeWindow(wwin, ndir);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (event->xbutton.button==Button3) {
|
} else if (event->xbutton.button==Button3) {
|
||||||
|
|||||||
Reference in New Issue
Block a user