D20937: Handle XdgWindowGeometry in configure request sizes

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

REVISION SUMMARY
  The size passed to an XDG shell configure request should match the
  window size of the given window, we don't want to include the size of
  any shadows that may be drawn by the client.
  
  Kwin has the same concept of geometry for both window management, input
  and rendering.
  
  In order to approach this in a way that does not risk any regressions
  with kwin's current structure AbstractClient::geometry remains the
  canonical source and we handle the window within that internally within
  ShellClient treating the windowGeometry as a set of margins from this.
  
  This is part of a much bigger task (T10867 <https://phabricator.kde.org/T10867>). This patch addresses
  windows growing when starting a drag based resize.
  
  BUG: 403376

TEST PLAN
  Unit test
  gtk3-demo

REPOSITORY
  R108 KWin

BRANCH
  window_geom

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

AFFECTED FILES
  autotests/integration/shell_client_test.cpp
  shell_client.cpp
  shell_client.h

To: davidedmundson, #kwin
Cc: kwin, jraleigh, GB_2, mkulinski, ragreen, jackyalcine, Pitel, iodelay, bwowk, ZrenBot, ngraham, alexeymin, 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.