Fix root window size changes

This commit is contained in:
Matthias Clasen 2006-06-29 15:13:56 +00:00
parent 4e9aa186f3
commit 862e96f9bf
3 changed files with 21 additions and 3 deletions

View File

@ -1,4 +1,10 @@
2006-06-26 Matthias Clasen <mclasen@redhat.com>
2006-06-29 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkevents-x11.c (gdk_event_translate): Update the
size of the drawable for the root window when the screen size
changes. (#346102, Sven Herzberg)
2006-06-29 Matthias Clasen <mclasen@redhat.com>
* NEWS: Updates

View File

@ -1,4 +1,10 @@
2006-06-26 Matthias Clasen <mclasen@redhat.com>
2006-06-29 Matthias Clasen <mclasen@redhat.com>
* gdk/x11/gdkevents-x11.c (gdk_event_translate): Update the
size of the drawable for the root window when the screen size
changes. (#346102, Sven Herzberg)
2006-06-29 Matthias Clasen <mclasen@redhat.com>
* NEWS: Updates

View File

@ -1819,7 +1819,13 @@ gdk_event_translate (GdkDisplay *display,
? " (discarding substructure)"
: ""));
if (window && GDK_WINDOW_TYPE (window) == GDK_WINDOW_ROOT)
_gdk_x11_screen_size_changed (screen, xevent);
{
window_impl->width = xevent->xconfigure.width;
window_impl->height = xevent->xconfigure.height;
_gdk_x11_drawable_update_size (window_private->impl);
_gdk_x11_screen_size_changed (screen, xevent);
}
if (window &&
xevent->xconfigure.event == xevent->xconfigure.window &&