[gtk/fix-corner-resize] Fix resize corners
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/fix-corner-resize] Fix resize corners
- Date: Thu, 3 Jan 2019 00:10:44 +0000 (UTC)
commit dc68d04c32b3334c5036a1874625bdb24105e557
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Jan 2 19:08:02 2019 -0500
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.
gtk/gtkwindow.c | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 339b0e6f89..1752293c46 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]