SUMMARY Window-Specific Overrides rule using the window-class does not work under Wayland STEPS TO REPRODUCE 1. Open System Settings > Application style > Window Decorations > Breeze > Configure 2. Create a new rule in the Window-Specific Overrides tab: Matching Window property-> Window Class name ; Regexp to match: kate ; Check on "Hide window titlebar" -> Ok 3. Run kate OBSERVED RESULT Kate's window titlebar is not hidden. EXPECTED RESULT Kate's window titlebar is hidden. ADDITIONAL INFORMATION It works if I use window-titlebar instead of window-class in the step 2. above.
It also works properly under Plasma X.
Can reproduce this bug with Kate app Operating System: KDE neon Developer Edition KDE Plasma Version: 5.14.80 Qt Version: 5.11.1 KDE Frameworks Version: 5.52.0
Can reproduce still with Kate 21.08.3 Operating System: openSUSE Tumbleweed 20211107 KDE Plasma Version: 5.23.2 KDE Frameworks Version: 5.87.0 Qt Version: 5.15.2 Kernel Version: 5.14.14-1-default (64-bit) Graphics Platform: Wayland
It seems unlikely that this will ever work though, because window class is an X11 property.
(In reply to Philipp Reichmuth from comment #4) > It seems unlikely that this will ever work though, because window class is > an X11 property. It is possible to set KWin Window rules (under System Settings > Window Management) on Wayland, defined by the window class. Even "Detect Window Properties" works there. I don't see why it couldn't work the same way for Breeze decoration window specific overrides.
It populates that from the app_id, probably, just calling it "class"? Then it's a matter of applying it to window decorations the same way as to window rules.
Isn't this technically a bug in "Breeze" > "window decoration", and not in "KWin" > "wayland-generic"? At least the relevant code seems to reside at https://invent.kde.org/plasma/breeze/-/tree/master/kdecoration
I guess. I've refiled it there
Git commit 2501065a3aa46a738f38ee7db482ebac7f5d9889 by Vlad Zahorodnii. Committed on 25/11/2022 at 14:37. Pushed by vladz into branch 'master'. kdecoration: Make "Detect window properties" button work on Wayland Use kwin's dbus api to query window info both on x11 and wayland. In order to make dbus interaction code nicer, this change gets rid of the nested dialog. With the proposed changes, you will have to select window class or window title in the exception type combobox, click "detect window properties" button, click a window and the kcm will fill in "regular expression to match" text field. M +0 -1 kdecoration/CMakeLists.txt M +26 -134 kdecoration/config/breezedetectwidget.cpp M +9 -59 kdecoration/config/breezedetectwidget.h M +5 -24 kdecoration/config/breezeexceptiondialog.cpp D +0 -146 kdecoration/config/ui/breezedetectwidget.ui https://invent.kde.org/plasma/breeze/commit/2501065a3aa46a738f38ee7db482ebac7f5d9889