[gtk+] Don't set an input shape unless client-decorated



commit 84ff0c201a52c06184602b3629423b5ff0ddf1bd
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Sep 6 15:43:11 2014 -0400

    Don't set an input shape unless client-decorated
    
    We were actually setting an input shape larger than the window
    in !csd, and this was confusing at least openbox.
    
    https://bugzilla.gnome.org/736064

 gtk/gtkwindow.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 592a085..9b17feb 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -6763,6 +6763,9 @@ update_border_windows (GtkWindow *window)
   GtkStyleContext *context;
   GtkStateFlags state;
 
+  if (!priv->client_decorated)
+    return;
+
   state = gtk_widget_get_state_flags (widget);
   context = gtk_widget_get_style_context (widget);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]