[gtk+/gtk-3-10] W32: Correctly set maximized window position
- From: Руслан Ижбулатов <ruslanizhb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-10] W32: Correctly set maximized window position
- Date: Thu, 26 Mar 2015 15:59:20 +0000 (UTC)
commit 14ac46cbd4680638f4c30c68c680eb1d37ba0653
Author: Руслан Ижбулатов <lrn1986 gmail com>
Date: Thu Mar 26 15:22:07 2015 +0000
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 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gdk/win32/gdkevents-win32.c b/gdk/win32/gdkevents-win32.c
index b376adf..c47e665 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
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]