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:
Matthias Clasen 2014-03-17 18:18:53 -04:00
parent 8a9dab8e29
commit 36b3b9cbeb

View File

@ -4890,7 +4890,7 @@ check_unmaximize (MoveResizeData *mv_resize,
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;
dx = x_root - mv_resize->moveresize_x;