Bug 482953 - Force Wayland Electron programs using SSD by window rule doesn't work
Summary: Force Wayland Electron programs using SSD by window rule doesn't work
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: rules (show other bugs)
Version: 6.0.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-09 08:06 UTC by Wind He
Modified: 2024-04-21 06:41 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wind He 2024-03-09 08:06:20 UTC
SUMMARY

STEPS TO REPRODUCE
1. Using commandline args to make vscode/obsidian running on wayland
2. Change in app setting to make it using CSD
3. Enable the window rule ("no titlebar and frame" -> force > false)

OBSERVED RESULT

No SSD appeared.

EXPECTED RESULT

SSD apperaed outside the CSD, just like it do when running on Xwayland or X11.

SOFTWARE/OS VERSIONS

Operating System: Arch Linux 
KDE Plasma Version: 6.0.1
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.7.8-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 20 × 12th Gen Intel® Core™ i7-12700H
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa Intel® Graphics
Manufacturer: HP
Product Name: OMEN by HP Laptop 16-b1xxx

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2024-03-11 22:33:59 UTC
Unfortunately this window rlue doesn't work on Wayland, I believe. We should probably hide it.
Comment 2 Wind He 2024-03-13 02:37:12 UTC
Is it technically impossible or it will be back in the future?
Comment 3 Ismael Asensio 2024-03-14 22:35:08 UTC
This rule is working for me on Wayland though (tested right now on master on electron MS Teams)
Comment 4 andi.schulz 2024-03-15 10:38:18 UTC
This rule is the only way to give CSD applications a drop shadow drawn by kwin (such as VS Code or probably any other Electron app drawing custom title bars). For XWayland, the rule still works, but on on Wayland-native apps, e.g. when forcing VS Code or Electron apps into Wayland-native mode, as Nate has said before, the rule does not work.

If this rule is no longer possible, Wayland is a huge visual downgrade compared to X11.
Comment 5 Wind He 2024-04-21 06:41:21 UTC
(In reply to Ismael Asensio from comment #3)
> This rule is working for me on Wayland though (tested right now on master on
> electron MS Teams)

Is your MS Team working on Wayland with extra arguments or on XWayland?