From 260d521dd7f2cdfb9a88c32280120fabfb3a27d0 Mon Sep 17 00:00:00 2001 From: Jeremy Tan Date: Wed, 13 Apr 2016 21:39:46 +0800 Subject: [PATCH] GDK W32: Fix bounding rect calculation on window creation The bounding rect specifies the top left and bottom right corners - the bottom right corner must account for the current window position. https://bugzilla.gnome.org/show_bug.cgi?id=764996 --- gdk/win32/gdkwindow-win32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdk/win32/gdkwindow-win32.c b/gdk/win32/gdkwindow-win32.c index c304912a4b..9815199b0c 100644 --- a/gdk/win32/gdkwindow-win32.c +++ b/gdk/win32/gdkwindow-win32.c @@ -817,8 +817,8 @@ _gdk_win32_display_create_window_impl (GdkDisplay *display, { rect.left = window->x; rect.top = window->y; - rect.right = window->width; - rect.bottom = window->height; + rect.right = window->width + window->x; + rect.bottom = window->height + window->y; AdjustWindowRectEx (&rect, dwStyle, FALSE, dwExStyle);