From 6125baa67037a178fa2233061a16ca2a5ccd5cf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A0=D1=83=D1=81=D0=BB=D0=B0=D0=BD=20=D0=98=D0=B6=D0=B1?= =?UTF-8?q?=D1=83=D0=BB=D0=B0=D1=82=D0=BE=D0=B2?= Date: Thu, 26 Mar 2015 15:22:07 +0000 Subject: [PATCH] W32: Correctly set maximized window position Use screen workarea to *also* set the position of a maximized window, not just its size. Without this the window position defaults to 0:0 (the topleft corner), which is wrong when taskbar is position along the top or left edge of the screen. https://bugzilla.gnome.org/show_bug.cgi?id=746821 --- gdk/win32/gdkevents-win32.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gdk/win32/gdkevents-win32.c b/gdk/win32/gdkevents-win32.c index 4b32f1c735..d9e4de5120 100644 --- a/gdk/win32/gdkevents-win32.c +++ b/gdk/win32/gdkevents-win32.c @@ -3087,6 +3087,8 @@ gdk_event_translate (MSG *msg, { mmi->ptMaxTrackSize.x = moninfo.rcWork.right - moninfo.rcWork.left; mmi->ptMaxTrackSize.y = moninfo.rcWork.bottom - moninfo.rcWork.top; + mmi->ptMaxPosition.x = moninfo.rcWork.left; + mmi->ptMaxPosition.y = moninfo.rcWork.top; } else {