summaryrefslogtreecommitdiffhomepage
path: root/compat/check-visible.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'compat/check-visible.cpp')
-rw-r--r--compat/check-visible.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/compat/check-visible.cpp b/compat/check-visible.cpp
index 96dba60f..9afdbb76 100644
--- a/compat/check-visible.cpp
+++ b/compat/check-visible.cpp
@@ -24,10 +24,11 @@ void set_is_visible(const QWidget& w, bool force)
timer.start();
- const HWND id = (HWND) w.winId();
+ HWND id = (HWND) w.winId();
const QPoint pt = w.mapToGlobal({ 0, 0 });
+ const QPoint pt2 = w.mapToGlobal({ w.width(), w.height() });
- const int W = w.width(), H = w.height();
+ const int W = pt2.x(), H = pt2.y();
const QPoint points[] =
{