mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +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)
|
edge != GDK_SURFACE_EDGE_SOUTH)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (supports_edge_constraints &&
|
if ((edge == GDK_SURFACE_EDGE_NORTH ||
|
||||||
(edge == GDK_SURFACE_EDGE_NORTH ||
|
|
||||||
edge == GDK_SURFACE_EDGE_SOUTH) &&
|
edge == GDK_SURFACE_EDGE_SOUTH) &&
|
||||||
(priv->edge_constraints & constraints_for_edge (GDK_SURFACE_EDGE_WEST)))
|
(priv->edge_constraints & constraints_for_edge (GDK_SURFACE_EDGE_WEST)))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
@ -1789,8 +1788,7 @@ edge_under_coordinates (GtkWindow *window,
|
|||||||
edge != GDK_SURFACE_EDGE_SOUTH)
|
edge != GDK_SURFACE_EDGE_SOUTH)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (supports_edge_constraints &&
|
if ((edge == GDK_SURFACE_EDGE_NORTH ||
|
||||||
(edge == GDK_SURFACE_EDGE_NORTH ||
|
|
||||||
edge == GDK_SURFACE_EDGE_SOUTH) &&
|
edge == GDK_SURFACE_EDGE_SOUTH) &&
|
||||||
(priv->edge_constraints & constraints_for_edge (GDK_SURFACE_EDGE_EAST)))
|
(priv->edge_constraints & constraints_for_edge (GDK_SURFACE_EDGE_EAST)))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
@ -1809,8 +1807,7 @@ edge_under_coordinates (GtkWindow *window,
|
|||||||
edge != GDK_SURFACE_EDGE_WEST)
|
edge != GDK_SURFACE_EDGE_WEST)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (supports_edge_constraints &&
|
if ((edge == GDK_SURFACE_EDGE_EAST ||
|
||||||
(edge == GDK_SURFACE_EDGE_EAST ||
|
|
||||||
edge == GDK_SURFACE_EDGE_WEST) &&
|
edge == GDK_SURFACE_EDGE_WEST) &&
|
||||||
(priv->edge_constraints & constraints_for_edge (GDK_SURFACE_EDGE_NORTH)))
|
(priv->edge_constraints & constraints_for_edge (GDK_SURFACE_EDGE_NORTH)))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
@ -1824,8 +1821,7 @@ edge_under_coordinates (GtkWindow *window,
|
|||||||
edge != GDK_SURFACE_EDGE_WEST)
|
edge != GDK_SURFACE_EDGE_WEST)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (supports_edge_constraints &&
|
if ((edge == GDK_SURFACE_EDGE_EAST ||
|
||||||
(edge == GDK_SURFACE_EDGE_EAST ||
|
|
||||||
edge == GDK_SURFACE_EDGE_WEST) &&
|
edge == GDK_SURFACE_EDGE_WEST) &&
|
||||||
(priv->edge_constraints & constraints_for_edge (GDK_SURFACE_EDGE_SOUTH)))
|
(priv->edge_constraints & constraints_for_edge (GDK_SURFACE_EDGE_SOUTH)))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
Loading…
Reference in New Issue
Block a user