W32: Correctly set maximized window position
authorРуслан Ижбулатов <lrn1986@gmail.com>
Thu, 26 Mar 2015 15:22:07 +0000 (15:22 +0000)
committerРуслан Ижбулатов <lrn1986@gmail.com>
Thu, 26 Mar 2015 15:43:17 +0000 (15:43 +0000)
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

index 8d63ada430804b2fa1f9c3d11d8590b26d5b4c35..d206efa008ce0f5024239e33aa4232472f77c95b 100644 (file)
@@ -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
            {