summaryrefslogtreecommitdiffhomepage
path: root/compat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2020-06-12 23:36:18 +0200
committerStanislaw Halik <sthalik@misaki.pl>2020-06-12 23:36:36 +0200
commitd64e1ec0a5cb89fc60e9efd1cf4bbf820393410c (patch)
tree3ce83b90dbe051c935eb799ff2bfe10273b12921 /compat
parent442c01a60ed376c8693255a7649666113250bf37 (diff)
compat/check-visible: always visible with multiple displays
Diffstat (limited to 'compat')
-rw-r--r--compat/check-visible.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/compat/check-visible.cpp b/compat/check-visible.cpp
index f786ca14..4da649c7 100644
--- a/compat/check-visible.cpp
+++ b/compat/check-visible.cpp
@@ -29,6 +29,15 @@ void set_is_visible(const QWidget& w, bool force)
return;
}
+ {
+ int ndisplays = GetSystemMetrics(SM_CMONITORS);
+ if (ndisplays > 1)
+ {
+ visible = true;
+ return;
+ }
+ }
+
HWND hwnd = (HWND)w.winId();
if (!force && timer.elapsed_ms() < (visible ? visible_timeout : invisible_timeout))