updated on Sun Jan 15 04:04:02 UTC 2012
[aur-mirror.git] / gtk3-ubuntu / 016_no_offscreen_widgets_grabbing.patch
blobec4e09ff33e3b8d7237894972919109bc9fd4ba9
1 Description: Don't let offscreen widget do grabbing
2 Author: Cody Russell <bratsche@gnome.org>
3 Bug: https://bugzilla.gnome.org/show_bug.cgi?id=607668
4 Bug-Ubuntu: https://bugs.launchpad.net/bugs/512427
6 Index: gtk+3.0-3.1.92/gtk/gtkmain.c
7 ===================================================================
8 --- gtk+3.0-3.1.92.orig/gtk/gtkmain.c 2011-08-16 04:04:34.000000000 +0200
9 +++ gtk+3.0-3.1.92/gtk/gtkmain.c 2011-09-21 15:35:06.361475136 +0200
10 @@ -2205,9 +2205,14 @@
12 GtkWindowGroup *group;
13 GtkWidget *old_grab_widget;
14 + GtkWidget *toplevel;
16 g_return_if_fail (widget != NULL);
18 + toplevel = gtk_widget_get_toplevel (widget);
19 + if (toplevel && gdk_window_get_window_type (gtk_widget_get_window (toplevel)) == GDK_WINDOW_OFFSCREEN)
20 + return;
22 if (!gtk_widget_has_grab (widget) && gtk_widget_is_sensitive (widget))
24 _gtk_widget_set_has_grab (widget, TRUE);