GDK W32: Fix bounding rect calculation on window creation

This is a backport of commit 260d521.

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
This commit is contained in:
Jeremy Tan
2016-04-13 21:39:46 +08:00
committed by Руслан Ижбулатов
parent 899147d6d0
commit a4af2dd246

View File

@@ -683,8 +683,8 @@ _gdk_window_impl_new (GdkWindow *window,
{
rect.left = private->x;
rect.top = private->y;
rect.right = private->width;
rect.bottom = private->height;
rect.right = private->width + private->x;
rect.bottom = private->height + private->y;
AdjustWindowRectEx (&rect, dwStyle, FALSE, dwExStyle);