[gtk+/gtk-2-24] Revert "W32: correctly guess max window size from the size of the workarea of the screen it's on"



commit 0edc775d1aa78988506a4baa5a6af35a138ea5c4
Author: Руслан Ижбулатов <lrn1986 gmail com>
Date:   Thu Mar 26 17:12:01 2015 +0000

    Revert "W32: correctly guess max window size from the size of the workarea of the screen it's on"
    
    This is only needed for CSDs. GKT+-2.x has no CSDs, so this
    code is completely unnecessary.
    
    This reverts commit d9122d13795e58bd96ff75e933b00f38d1b24aac.

 gdk/win32/gdkevents-win32.c |   23 ++---------------------
 1 files changed, 2 insertions(+), 21 deletions(-)
---
diff --git a/gdk/win32/gdkevents-win32.c b/gdk/win32/gdkevents-win32.c
index 6d29d66..c853e1e 100644
--- a/gdk/win32/gdkevents-win32.c
+++ b/gdk/win32/gdkevents-win32.c
@@ -3326,27 +3326,8 @@ gdk_event_translate (MSG  *msg,
        }
       else
        {
-         HMONITOR winmon;
-         MONITORINFO moninfo;
-
-         winmon = MonitorFromWindow (GDK_WINDOW_HWND (window), MONITOR_DEFAULTTONEAREST);
-
-         moninfo.cbSize = sizeof (moninfo);
-
-         if (GetMonitorInfoA (winmon, &moninfo))
-           {
-             mmi->ptMaxTrackSize.x = moninfo.rcWork.right - moninfo.rcWork.left;
-             mmi->ptMaxTrackSize.y = moninfo.rcWork.bottom - moninfo.rcWork.top;
-           }
-         else
-           {
-             /* Apparently, this is just a very big number (bigger than any widget
-               * could realistically be) to make sure the window is as big as
-               * possible when maximized.
-               */
-             mmi->ptMaxTrackSize.x = 30000;
-             mmi->ptMaxTrackSize.y = 30000;
-           }
+         mmi->ptMaxTrackSize.x = 30000;
+         mmi->ptMaxTrackSize.y = 30000;
        }
 
       if (impl->hint_flags & (GDK_HINT_MIN_SIZE | GDK_HINT_MAX_SIZE))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]