diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2019-01-22 14:38:44 +0100 |
---|---|---|
committer | Johan Helsing <johan.helsing@qt.io> | 2019-01-30 14:34:31 +0000 |
commit | d0063d0972b29e9a2d4bdff837e3d4c23ac2e6cc (patch) | |
tree | fb312f0b51f042f73510be8ae6da22780d7caf4d /src/hardwareintegration | |
parent | 344e884d93bc35a8011427963f39575e56a5418a (diff) |
Client: Fix incorrect decoration size when QT_SCALE_FACTOR is set
[ChangeLog][QPA plugin] Fixed a bug where window decorations were to small for
for the content when QT_SCALE_FACTOR was set.
Fixes: QTBUG-72993
Change-Id: I1ed26e038c27f7c4454a6bcc04f0849e4af789e7
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'src/hardwareintegration')
-rw-r--r-- | src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp b/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp index a8ee9a43a..6455b6fa9 100644 --- a/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp +++ b/src/hardwareintegration/client/wayland-egl/qwaylandglcontext.cpp @@ -147,9 +147,9 @@ public: { QOpenGLTextureCache *cache = QOpenGLTextureCache::cacheForContext(m_context->context()); - QRect windowRect = window->window()->frameGeometry(); + QSize surfaceSize = window->surfaceSize(); int scale = window->scale() ; - glViewport(0, 0, windowRect.width() * scale, windowRect.height() * scale); + glViewport(0, 0, surfaceSize.width() * scale, surfaceSize.height() * scale); glDisable(GL_DEPTH_TEST); glDisable(GL_BLEND); |