forked from AuroraMiddleware/gtk
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.
This commit is contained in:
parent
5f26876acb
commit
03a30e462e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user