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
*** Bug 387742 has been marked as a duplicate of this bug. ***
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."