]> Pileus Git - ~andy/gtk/commitdiff
Fix DND with frame sync
authorMatthias Clasen <mclasen@redhat.com>
Thu, 28 Feb 2013 12:44:00 +0000 (07:44 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 28 Feb 2013 12:48:06 +0000 (07:48 -0500)
Mutter magically ignores override-redirect windows with geometry
-100-100+1+1, and this breaks the frame synchronization between
gtk+ and mutter. For now, we avoid the issue by simply giving
the window a different geometry.
https://bugzilla.gnome.org/show_bug.cgi?id=694217

gtk/gtkdnd.c

index 42f7221ebd7e7b725c62529b5f7fb98533323f55..4b974a5ee95c60a1939a5880ec649f5388aabf50 100644 (file)
@@ -360,7 +360,7 @@ gtk_drag_get_ipc_widget_for_screen (GdkScreen *screen)
       result = gtk_window_new (GTK_WINDOW_POPUP);
       gtk_window_set_screen (GTK_WINDOW (result), screen);
       gtk_window_resize (GTK_WINDOW (result), 1, 1);
-      gtk_window_move (GTK_WINDOW (result), -100, -100);
+      gtk_window_move (GTK_WINDOW (result), -99, -99);
       gtk_widget_show (result);
     }