mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
Fix resize corners
I was stuck in an X session and noticed that my resize corners all got east or north cursors. It turns out that gnome-shell does not properly advertise support for edge constraints under X11, and the absence of that makes the code for determining the edge under the cursor misbehave. This change should fix that.
This commit is contained in:
parent
bd95e16372
commit
dc68d04c32
@ -1774,8 +1774,7 @@ edge_under_coordinates (GtkWindow *window,
|
||||
edge != GDK_SURFACE_EDGE_SOUTH)
|
||||
return FALSE;
|
||||
|
||||
if (supports_edge_constraints &&
|
||||
(edge == GDK_SURFACE_EDGE_NORTH ||
|
||||
if ((edge == GDK_SURFACE_EDGE_NORTH ||
|
||||
edge == GDK_SURFACE_EDGE_SOUTH) &&
|
||||
(priv->edge_constraints & constraints_for_edge (GDK_SURFACE_EDGE_WEST)))
|
||||
return FALSE;
|
||||
@ -1789,8 +1788,7 @@ edge_under_coordinates (GtkWindow *window,
|
||||
edge != GDK_SURFACE_EDGE_SOUTH)
|
||||
return FALSE;
|
||||
|
||||
if (supports_edge_constraints &&
|
||||
(edge == GDK_SURFACE_EDGE_NORTH ||
|
||||
if ((edge == GDK_SURFACE_EDGE_NORTH ||
|
||||
edge == GDK_SURFACE_EDGE_SOUTH) &&
|
||||
(priv->edge_constraints & constraints_for_edge (GDK_SURFACE_EDGE_EAST)))
|
||||
return FALSE;
|
||||
@ -1809,8 +1807,7 @@ edge_under_coordinates (GtkWindow *window,
|
||||
edge != GDK_SURFACE_EDGE_WEST)
|
||||
return FALSE;
|
||||
|
||||
if (supports_edge_constraints &&
|
||||
(edge == GDK_SURFACE_EDGE_EAST ||
|
||||
if ((edge == GDK_SURFACE_EDGE_EAST ||
|
||||
edge == GDK_SURFACE_EDGE_WEST) &&
|
||||
(priv->edge_constraints & constraints_for_edge (GDK_SURFACE_EDGE_NORTH)))
|
||||
return FALSE;
|
||||
@ -1824,8 +1821,7 @@ edge_under_coordinates (GtkWindow *window,
|
||||
edge != GDK_SURFACE_EDGE_WEST)
|
||||
return FALSE;
|
||||
|
||||
if (supports_edge_constraints &&
|
||||
(edge == GDK_SURFACE_EDGE_EAST ||
|
||||
if ((edge == GDK_SURFACE_EDGE_EAST ||
|
||||
edge == GDK_SURFACE_EDGE_WEST) &&
|
||||
(priv->edge_constraints & constraints_for_edge (GDK_SURFACE_EDGE_SOUTH)))
|
||||
return FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user