forked from AuroraMiddleware/gtk
x11: Allow unmaximizing from tiled state too
This lets us unmaximize a half-tiled csd window on a touch system.
This commit is contained in:
parent
8a9dab8e29
commit
36b3b9cbeb
@ -4890,7 +4890,7 @@ check_unmaximize (MoveResizeData *mv_resize,
|
|||||||
|
|
||||||
state = gdk_window_get_state (mv_resize->moveresize_window);
|
state = gdk_window_get_state (mv_resize->moveresize_window);
|
||||||
|
|
||||||
if ((state & GDK_WINDOW_STATE_MAXIMIZED) == 0)
|
if ((state & (GDK_WINDOW_STATE_MAXIMIZED | GDK_WINDOW_STATE_TILED)) == 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
dx = x_root - mv_resize->moveresize_x;
|
dx = x_root - mv_resize->moveresize_x;
|
||||||
|
Loading…
Reference in New Issue
Block a user