Commit aadac20e authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Only emit size-changed if the screen size actually changed.

2008-10-22  Matthias Clasen  <mclasen@redhat.com>

        * gdk/x11/gdkscreen-x11.c: Only emit size-changed if the screen
        size actually changed.


svn path=/trunk/; revision=21698
parent 6df89b0a
2008-10-22 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkscreen-x11.c: Only emit size-changed if the screen
size actually changed.
2008-10-21 Michael Natterer <mitch@imendio.com>
* gdk/gdkdraw.c
......
......@@ -894,6 +894,11 @@ void
_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 @@ _gdk_x11_screen_size_changed (GdkScreen *screen,
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");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment