diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2020-06-12 23:36:18 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2020-06-12 23:36:36 +0200 |
commit | d64e1ec0a5cb89fc60e9efd1cf4bbf820393410c (patch) | |
tree | 3ce83b90dbe051c935eb799ff2bfe10273b12921 | |
parent | 442c01a60ed376c8693255a7649666113250bf37 (diff) |
compat/check-visible: always visible with multiple displays
-rw-r--r-- | compat/check-visible.cpp | 9 |
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)) |