[gtk+] gtkwindow: Do not create the multipress gesture for plugs



commit 03a30e462ea719f1029387724392f45e0230c602
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 6334f26..ac3b5c0 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]