[gtk+] GtkWindow: always input-shape csd windows
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkWindow: always input-shape csd windows
- Date: Sat, 7 Jun 2014 02:07:27 +0000 (UTC)
commit 3aa1350bd0f5e2439b9def24599d3a41a4df7de4
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Jun 6 18:31:27 2014 -0400
GtkWindow: always input-shape csd windows
Even if we don't have border windows, we need to set the input
shape so we ignore clicks in the shadow region.
gtk/gtkwindow.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index f6ea88d..2b57c40 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -6823,9 +6823,6 @@ update_border_windows (GtkWindow *window)
GtkStyleContext *context;
GtkStateFlags state;
- if (priv->border_window[0] == NULL)
- return;
-
state = gtk_widget_get_state_flags (widget);
context = gtk_widget_get_style_context (widget);
@@ -6839,6 +6836,9 @@ update_border_windows (GtkWindow *window)
gtk_style_context_restore (context);
get_shadow_width (widget, &window_border);
+ if (priv->border_window[0] == NULL)
+ goto shape;
+
if (!priv->resizable ||
priv->tiled ||
priv->fullscreen ||
@@ -7012,6 +7012,7 @@ update_border_windows (GtkWindow *window)
gdk_window_hide (priv->border_window[GDK_WINDOW_EDGE_EAST]);
}
+shape:
/* we also update the input shape, which makes it so that clicks
* outside the border windows go through
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]