fix an xrandr problem

This commit is contained in:
Matthias Clasen 2008-08-27 02:23:09 +00:00
parent 8b06b7ec64
commit a14db72945
2 changed files with 18 additions and 1 deletions

View File

@ -16,7 +16,7 @@
Summary: The GIMP ToolKit (GTK+), a library for creating GUIs for X
Name: gtk2
Version: %{base_version}
Release: 3%{?dist}
Release: 4%{?dist}
License: LGPLv2+
Group: System Environment/Libraries
Source: http://download.gnome.org/sources/gtk+/2.13/gtk+-%{version}.tar.bz2
@ -33,6 +33,7 @@ Patch2: workaround.patch
# from upstream svn
Patch3: color-loop.patch
Patch4: flash-swarm.patch
Patch5: screen-size-change.patch
BuildRequires: atk-devel >= %{atk_version}
BuildRequires: pango-devel >= %{pango_version}
@ -120,6 +121,7 @@ docs for the GTK+ widget toolkit.
%patch2 -p1 -b .workaround
%patch3 -p1 -b .color-loop
%patch4 -p1 -b .flash-swarm
%patch5 -p1 -b .screen-size-change
for i in config.guess config.sub ; do
test -f %{_datadir}/libtool/$i && cp %{_datadir}/libtool/$i .
@ -303,6 +305,9 @@ rm -rf $RPM_BUILD_ROOT
%{_datadir}/gtk-2.0
%changelog
* Tue Aug 26 2008 Matthias Clasen <mclasen@redhat.com> - 2.13.7-4
- Fix an Xrandr bug
* Mon Aug 25 2008 Matthias Clasen <mclasen@redhat.com> - 2.13.7-3
- Fix the "swarm of flash windows"

12
screen-size-change.patch Normal file
View File

@ -0,0 +1,12 @@
diff -up gtk+-2.13.7/gdk/x11/gdkscreen-x11.c.screen-size-change gtk+-2.13.7/gdk/x11/gdkscreen-x11.c
--- gtk+-2.13.7/gdk/x11/gdkscreen-x11.c.screen-size-change 2008-08-26 22:19:26.000000000 -0400
+++ gtk+-2.13.7/gdk/x11/gdkscreen-x11.c 2008-08-26 22:19:42.000000000 -0400
@@ -985,7 +985,7 @@ _gdk_x11_screen_size_changed (GdkScreen
return;
#endif
- init_multihead (screen);
+ _gdk_x11_screen_process_monitors_change (screen);
g_signal_emit_by_name (screen, "size_changed");
}