summaryrefslogtreecommitdiffstats
path: root/LICENSE.LGPLv3
diff options
context:
space:
mode:
authorJohan Klokkhammer Helsing <johan.helsing@qt.io>2016-06-08 17:40:25 +0200
committerJohan Helsing <johan.helsing@qt.io>2016-06-16 08:23:14 +0000
commita76e98dea9646dea2592e4699f13d9b4706c68f1 (patch)
treed3605a196764bb4b95e30043395a702d2b0c76bd /LICENSE.LGPLv3
parent5392343491e93952b520ad43d164dfbe1e550d58 (diff)
Client: Fix incorrect size when maximizing using xdg_shell
When maximizing xdg_shell clients, the clients would call QPlatformWindow::setGeometry() with frame margins included, resulting in a window that was bigger than what was requested by the compositor. The reason for this, was that QWaylandXdgSurface would subtract the frame margins from the width and height only when the resizing state was set, not when the maximized state was set. Later, margins were added again before QWaylandWindow::configure was called. This resulted in margins being subtracted and then added back for the resizing state, while for the maximized state margins were only added and never subtracted. This behavior has now been simplified so only size including window frame is tracked. This is what we receive in the XdgSurface::configure event anyway, and also what QWaylandWindow::configure expects. Change-Id: I0629e7e79a5367fa872743c6d025bfab8a4f2866 Reviewed-by: Giulio Camuffo <giulio.camuffo@kdab.com>
Diffstat (limited to 'LICENSE.LGPLv3')
0 files changed, 0 insertions, 0 deletions