gtk+ r21699 - in branches/gtk-2-14: . gdk/x11
- From: matthiasc svn gnome org
- To: svn-commits-list gnome org
- Subject: gtk+ r21699 - in branches/gtk-2-14: . gdk/x11
- Date: Wed, 22 Oct 2008 14:59:00 +0000 (UTC)
Author: matthiasc
Date: Wed Oct 22 14:59:00 2008
New Revision: 21699
URL: http://svn.gnome.org/viewvc/gtk+?rev=21699&view=rev
Log:
2008-10-22 Matthias Clasen <mclasen redhat com>
* gdk/x11/gdkscreen-x11.c: Only emit size-changed if the screen
size actually changed.
Modified:
branches/gtk-2-14/ChangeLog
branches/gtk-2-14/gdk/x11/gdkscreen-x11.c
Modified: branches/gtk-2-14/gdk/x11/gdkscreen-x11.c
==============================================================================
--- branches/gtk-2-14/gdk/x11/gdkscreen-x11.c (original)
+++ branches/gtk-2-14/gdk/x11/gdkscreen-x11.c Wed Oct 22 14:59:00 2008
@@ -894,6 +894,11 @@
_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;
@@ -909,7 +914,11 @@
else
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");
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]