D16710: [wayland] Fix window sizing when restoring a window that was initially fullscreen

Sebastian Krzyszkowiak <[email protected]>
Newsgroups gmane.comp.kde.devel.kwin
Message-ID <[email protected]>
dos created this revision.
dos added a reviewer: KWin.
Herald added a project: KWin.
Herald added a subscriber: kwin.
dos requested review of this revision.

REVISION SUMMARY
  When creating a surface and setting it as fullscreen before attaching its buffer, KWin does not know the original dimensions of the surface and tries to use an invalid value when unsetting the fullscreen flag. This patch fixes this by sending a configure with the size of 0,0 - which according to xdg-shell spec means that the client is requested to set its size by itself.

TEST PLAN
  1. Create a fullscreen Wayland window.
  2. Toggle fullscreen off.
  3. KWin should send a configure event with size 0,0 instead of 1,1.

REPOSITORY
  R108 KWin

REVISION DETAIL
  https://phabricator.kde.org/D16710

AFFECTED FILES
  shell_client.cpp

To: dos, #kwin
Cc: kwin, mkulinski, ragreen, jackyalcine, Pitel, iodelay, bwowk, ZrenBot, ngraham, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, mart
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.