From 2f6aea019384f64e498f71a5e7fefe0389570c1d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sep 07 2009 01:37:18 +0000 Subject: Fix initial event maks of the root window --- diff --git a/gtk2.spec b/gtk2.spec index 04b538e..0e94e7e 100644 --- a/gtk2.spec +++ b/gtk2.spec @@ -17,7 +17,7 @@ Summary: The GIMP ToolKit (GTK+), a library for creating GUIs for X Name: gtk2 Version: %{base_version} -Release: 1%{?dist} +Release: 2%{?dist} License: LGPLv2+ Group: System Environment/Libraries Source: http://download.gnome.org/sources/gtk+/2.17/gtk+-%{version}.tar.bz2 @@ -28,7 +28,9 @@ Source3: im-cedilla.conf # Biarch changes Patch0: gtk+-2.13.5-lib64.patch +# from upstream Patch1: gtk2-fix-install.patch +Patch2: root-event-mask.patch BuildRequires: atk-devel >= %{atk_version} BuildRequires: pango-devel >= %{pango_version} @@ -141,6 +143,7 @@ This package contains developer documentation for the GTK+ widget toolkit. %patch0 -p1 -b .lib64 %patch1 -p1 -b .fix-install +%patch2 -p1 -b .root-event-mask # make sure that gtkmarshalers.{c, h} get regenerated during the build # - caused by print_authentication.patch @@ -382,6 +385,9 @@ fi %changelog +* Sun Sep 6 2009 Matthias Clasen - 2.17.11-2 +- Fix the initial event mask for the root window (#521137) + * Sat Sep 5 2009 Matthias Clasen - 2.17.11-1 - Update to 2.17.11 diff --git a/root-event-mask.patch b/root-event-mask.patch new file mode 100644 index 0000000..f461ec4 --- /dev/null +++ b/root-event-mask.patch @@ -0,0 +1,17 @@ +diff -up gtk+-2.17.11/gdk/x11/gdkwindow-x11.c.event-mask gtk+-2.17.11/gdk/x11/gdkwindow-x11.c +--- gtk+-2.17.11/gdk/x11/gdkwindow-x11.c.event-mask 2009-09-06 21:31:08.926764157 -0400 ++++ gtk+-2.17.11/gdk/x11/gdkwindow-x11.c 2009-09-06 21:32:03.142614346 -0400 +@@ -455,8 +455,12 @@ _gdk_windowing_window_init (GdkScreen * + private->width = WidthOfScreen (screen_x11->xscreen); + private->height = HeightOfScreen (screen_x11->xscreen); + private->viewable = TRUE; ++ ++ /* see init_randr_support() in gdkscreen-x11.c */ ++ private->event_mask = GDK_STRUCTURE_MASK; ++ + _gdk_window_update_size (screen_x11->root_window); +- ++ + _gdk_xid_table_insert (screen_x11->display, + &screen_x11->xroot_window, + screen_x11->root_window);