D16513: [effects/desktopgrid] Don't display the close button from Present Windows

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

REVISION SUMMARY
  If you activate the Present Windows effect and then the Desktop Grid,
  you'll be able to see the close button from PW. The reason for that is
  PW doesn't destroy the close button and DG doesn't filter it out.
  
  This patch addesses this problem by syncing DesktopGridEffect::isRelevantWithPresentWindows
  with PresentWindowsEffect::isSelectableWindow.
  
  On X11, the close button is filtered by the isSpecialWindow check. On
  Wayland, the close button is filtered by the acceptsFocus check.
  
  The proposed solution is kinda hack-ish, but on the other hand, we have
  to keep those two methods in sync anyway.
  
  In addition to the close button, notifications won't be displayed too.
  
  BUG: 364710
  FIXED-IN: 5.14.3

TEST PLAN
  - Activate the Present Windows effect;
  - Activate the Desktop Grid effect;
  - (the close button is no longer visible)

REPOSITORY
  R108 KWin

BRANCH
  effects-desktopgrid-dont-display-close-button

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

AFFECTED FILES
  effects/desktopgrid/desktopgrid.cpp

To: zzag, #kwin
Cc: kwin, mkulinski, ragreen, jackyalcine, Pitel, iodelay, bwowk, ZrenBot, 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.