mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-15 21:20:09 +00:00
display-x11: Unset tiled state if _GTK_EDGE_CONSTRAINTS is supported
Commit c415bef5de
introduced support for the new _GTK_EDGE_CONSTRAINTS
atom. If the compositor supports that atom, however, we were always
setting the tiled state, even if no actual tiling information is
available, where the correct action is to completely remove any traces
of the tiled state.
Fix that by correctly removing the tiled state when compositor supports
_GTK_EDGE_CONSTRAINTS Xatom.
https://bugzilla.gnome.org/show_bug.cgi?id=788516
This commit is contained in:
parent
7ab6dd64de
commit
73155e3988
@ -228,10 +228,8 @@ do_edge_constraint_state_check (GdkWindow *window,
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!(old_state & GDK_WINDOW_STATE_TILED))
|
||||
{
|
||||
local_set |= GDK_WINDOW_STATE_TILED;
|
||||
}
|
||||
if (old_state & GDK_WINDOW_STATE_TILED)
|
||||
local_unset |= GDK_WINDOW_STATE_TILED;
|
||||
}
|
||||
|
||||
/* Top edge */
|
||||
|
Loading…
Reference in New Issue
Block a user