[gtk+/gtk-3-14] gtkwindow: Do not create the multipress gesture for plugs



commit 81f94245bab5fb873aae3ce687d02a2f79115d7a
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Nov 4 17:07:29 2014 +0100

    gtkwindow: Do not create the multipress gesture for plugs
    
    GtkPlugs may "qualify" as toplevels, even though they're not meant to
    be WM manipulated, so refuse to create the multipress gesture for these
    too.

 gtk/gtkwindow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index e453311..66d8bd5 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -1604,7 +1604,7 @@ gtk_window_constructed (GObject *object)
 
   G_OBJECT_CLASS (gtk_window_parent_class)->constructed (object);
 
-  if (priv->type == GTK_WINDOW_TOPLEVEL)
+  if (priv->type == GTK_WINDOW_TOPLEVEL && !GTK_IS_PLUG (window))
     {
       priv->multipress_gesture = gtk_gesture_multi_press_new (GTK_WIDGET (object));
       gtk_gesture_single_set_button (GTK_GESTURE_SINGLE (priv->multipress_gesture), 0);


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