diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2014-11-04 17:07:29 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2014-11-04 19:03:18 +0100 |
commit | 03a30e462ea719f1029387724392f45e0230c602 (patch) | |
tree | 9c3d5996cb0d7799664fd45d06084da68dff7550 /gtk/gtkwindow.c | |
parent | 5f26876acbb58b1d6a26db4fce381b26ceb7344e (diff) | |
download | gtk+-03a30e462ea719f1029387724392f45e0230c602.tar.gz |
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.
Diffstat (limited to 'gtk/gtkwindow.c')
-rw-r--r-- | gtk/gtkwindow.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 6334f26514..ac3b5c09cb 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); |