From: Руслан Ижбулатов Date: Thu, 26 Mar 2015 15:22:07 +0000 (+0000) Subject: W32: Correctly set maximized window position X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~24^2~9972 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=af9f6fca5f4e735cfa1753e140402f5adbfcc646;p=gtk4.git 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 --- diff --git a/gdk/win32/gdkevents-win32.c b/gdk/win32/gdkevents-win32.c index 8d63ada430..d206efa008 100644 --- a/gdk/win32/gdkevents-win32.c +++ b/gdk/win32/gdkevents-win32.c @@ -3085,6 +3085,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 {