diff options
author | Johan Klokkhammer Helsing <johan.helsing@qt.io> | 2018-06-19 15:00:20 +0200 |
---|---|---|
committer | Johan Helsing <johan.helsing@qt.io> | 2018-10-09 07:00:31 +0000 |
commit | dc59e9decdaa5ca31b86f7fa63d088fefd35e645 (patch) | |
tree | 2ca37f5480d11c1ac5d6fe76053f6bc7ad0e569b /src/hardwareintegration | |
parent | eff85f5be4013c10753b3c7cb05e7c601fb600cd (diff) |
Client (xdg-shell): Only restore normal size when not maximized
kwin and perhaps other compositors sometimes send questionable configure events
with state set to maximized and size == {0,0}.
Previously, we would then restore the m_normalSize, which would give us a
maximized window with the size of a windowed (normal) one.
A size of zero usually means that it's up to the client to decide, which makes
sense for non-maximized windows, but not so much for maximized ones. This is
what the protocol spec says about the maximized state:
The surface is maximized. The window geometry specified in the configure
event must be obeyed by the client.
It's fixed in the dev version of kwin, but until then, let's be on the safe
side and only resize the window if things make sense.
[ChangeLog][QPA plugin] Fixed a bug where maximized windows would resize to
their unmaximized size if the compositor sent an invalid configure event.
Change-Id: I2371b29c82426ac48cd1c18c14c3dd0fe4f2250e
Reviewed-by: David Edmundson <davidedmundson@kde.org>
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'src/hardwareintegration')
0 files changed, 0 insertions, 0 deletions