summaryrefslogtreecommitdiffstats
path: root/abs/core/gtk2/gtk2-emit-size-change.patch
blob: 34053a87cab39ba28194cae19c0bd08eff0762be (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff -Naur gtk+-2.14.5-old/gdk/x11/gdkscreen-x11.c gtk+-2.14.5/gdk/x11/gdkscreen-x11.c
--- gtk+-2.14.5-old/gdk/x11/gdkscreen-x11.c	2008-11-24 16:36:03.000000000 +1000
+++ gtk+-2.14.5/gdk/x11/gdkscreen-x11.c	2008-12-03 00:39:38.000000000 +1000
@@ -894,11 +894,6 @@
 _gdk_x11_screen_size_changed (GdkScreen *screen,
 			      XEvent    *event)
 {
-  gint width, height;
-
-  width = gdk_screen_get_width (screen);
-  height = gdk_screen_get_height (screen);
-
 #ifdef HAVE_RANDR
   if (!XRRUpdateConfiguration (event))
     return;
@@ -915,10 +910,6 @@
     return;
 #endif
 
-  if (width == gdk_screen_get_width (screen) && 
-      height == gdk_screen_get_height (screen))
-    return;
-
   _gdk_x11_screen_process_monitors_change (screen);
   g_signal_emit_by_name (screen, "size_changed");
 }