mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 21:51:08 +00:00
wayland/surface: Set the tiling state from xdg-shell too
We plumbed it from the gtk-shell configure event, but didn't for the equivalent state passed via xdg_toplevel.configure.
This commit is contained in:
parent
dfbaeefc64
commit
07a59da6e4
@ -1862,6 +1862,22 @@ xdg_toplevel_configure (void *data,
|
||||
case XDG_TOPLEVEL_STATE_RESIZING:
|
||||
impl->pending.toplevel.is_resizing = TRUE;
|
||||
break;
|
||||
case XDG_TOPLEVEL_STATE_TILED_TOP:
|
||||
pending_state |= (GDK_TOPLEVEL_STATE_TILED |
|
||||
GDK_TOPLEVEL_STATE_TOP_TILED);
|
||||
break;
|
||||
case XDG_TOPLEVEL_STATE_TILED_RIGHT:
|
||||
pending_state |= (GDK_TOPLEVEL_STATE_TILED |
|
||||
GDK_TOPLEVEL_STATE_RIGHT_TILED);
|
||||
break;
|
||||
case XDG_TOPLEVEL_STATE_TILED_BOTTOM:
|
||||
pending_state |= (GDK_TOPLEVEL_STATE_TILED |
|
||||
GDK_TOPLEVEL_STATE_BOTTOM_TILED);
|
||||
break;
|
||||
case XDG_TOPLEVEL_STATE_TILED_LEFT:
|
||||
pending_state |= (GDK_TOPLEVEL_STATE_TILED |
|
||||
GDK_TOPLEVEL_STATE_LEFT_TILED);
|
||||
break;
|
||||
default:
|
||||
/* Unknown state */
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user