summaryrefslogtreecommitdiffstats
path: root/src/compositor/extensions/qwaylandxdgshell_p.h
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2016-06-09 15:33:33 +0200
committerJohan Helsing <johan.helsing@qt.io>2016-06-23 14:21:15 +0000
commite3cd3459c304ea6b35d95d6e40b90dfe43bd2a68 (patch)
tree14f11431be59e9152a5894fca1da354c5ab0a7d8 /src/compositor/extensions/qwaylandxdgshell_p.h
parent903cdcb6e00fd7f2ae04612c64dfa6c53f72e75b (diff)
Take buffer scale into account when calculating unset window geometry
This fixes a resize issue where the window would scale to be bufferScale times the size it should have been. Change-Id: I4d3eee52d54a063c0a617a053cbe05b351f18f76 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io> Reviewed-by: Pier Luigi Fiorini <pierluigi.fiorini@hawaiios.org>
Diffstat (limited to 'src/compositor/extensions/qwaylandxdgshell_p.h')
-rw-r--r--src/compositor/extensions/qwaylandxdgshell_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compositor/extensions/qwaylandxdgshell_p.h b/src/compositor/extensions/qwaylandxdgshell_p.h
index fa0e7037d..23c95bdeb 100644
--- a/src/compositor/extensions/qwaylandxdgshell_p.h
+++ b/src/compositor/extensions/qwaylandxdgshell_p.h
@@ -107,6 +107,8 @@ public:
void handleFocusLost();
void handleFocusReceived();
+ QRect calculateFallbackWindowGeometry() const;
+ void updateFallbackWindowGeometry();
private:
QWaylandXdgShell *m_xdgShell;