changeset 30742:60e31b2666d2 stable

fix maximized GUI with second monitor on windows (bug #61172) * main-window.cc (set_window_layout): always reduce available size, even if availbale geometry seems to be correct compared to screen geometry
author Torsten Lilge <ttl-octave@mailbox.org>
date Mon, 14 Feb 2022 19:43:33 +0100
parents d6ca77706ab3
children 96f018336be9
files libgui/src/main-window.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/src/main-window.cc	Sun Feb 13 12:47:13 2022 -0500
+++ b/libgui/src/main-window.cc	Mon Feb 14 19:43:33 2022 +0100
@@ -1563,7 +1563,7 @@
         QRect geom = s->geometry ();              // screen geometry
 
         QList<QScreen *> screen_list = QGuiApplication::screens ();
-        if ((screen_list.length () > 1) && (av_geom == geom))
+        if (screen_list.length () > 1)
           {
             // If we have more than one monitor and available and total
             // geometry are the same, reduce this too large geometry