From d64e1ec0a5cb89fc60e9efd1cf4bbf820393410c Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 12 Jun 2020 23:36:18 +0200 Subject: compat/check-visible: always visible with multiple displays --- compat/check-visible.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) 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)) -- cgit v1.2.3