mirror of
https://github.com/gryf/wmaker.git
synced 2026-10-06 09:20:34 +02:00
- changed behaviour of control/shift double click on titlebar for maximize
This commit is contained in:
1 parent
9e7242abe5
commit
d869445950
1 file changed
+4
-3
+4
-3
@@ -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