Bug 387895

Summary: Window rules are not detected with some applications
Product: [Plasma] kwin Reporter: Alberto Torres Ruiz <kungfoobar>
Component: rulesAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Alberto Torres Ruiz 2017-12-14 11:27:55 UTC
Maybe some applications change window class after the window is created?

Steps to reproduce:

- Open Spotify.
- Add window rule with substring "potify".
- Set some change to see if the rule is affecting.
  (in my case, minimum size of 770x70)
- Restart Spotify. It no longer affects.

Related: Bug 387742 (and the reason I'm skipping the S)

KWin 5.9.4
Comment 1 Martin Flöser 2017-12-14 19:51:03 UTC
*** Bug 387742 has been marked as a duplicate of this bug. ***
Comment 2 Martin Flöser 2017-12-14 19:52:57 UTC
Spotify is not ICCCM compliant. It changes the class after mapping which is not allowed. See https://tronche.com/gui/x/icccm/sec-4.html#s-4.1.2.5

"This property must be present when the window leaves the Withdrawn state and may be changed only while the window is in the Withdrawn state."