Bug 387895 - Window rules are not detected with some applications
Summary: Window rules are not detected with some applications
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: rules (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 387742 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-12-14 11:27 UTC by Alberto Torres Ruiz
Modified: 2017-12-14 19:52 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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."