Bug 496442

Summary: Window rules should allow setting a custom cursor
Product: [Plasma] kwin Reporter: riking28 <kanepyork>
Component: rulesAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: wishlist CC: isma.af, kde
Priority: NOR    
Version First Reported In: 5.27.11   
Target Milestone: ---   
Platform: NixOS   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description riking28 2024-11-18 22:56:24 UTC
SUMMARY
In order to work around an application bug, or just for customization fun, allow the user to set a per-application mouse cursor icon.

STEPS TO REPRODUCE
1. Encounter application bug where it scales cursor extremely incorrectly (to a tiny size) https://forums.factorio.com/viewtopic.php?f=7&t=120514
2. Attempt to create an Application Rule (Window Class exact match) to tell the application to use a larger cursor

OBSERVED RESULT
"Set custom cursor" isn't an available rule action

EXPECTED RESULT
I would be able to set a custom normal cursor image for a specific application program

SOFTWARE/OS VERSIONS
Operating System: NixOS 24.11
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.116.0
Qt Version: 5.15.15
Kernel Version: 6.10.5 (64-bit)
Graphics Platform: offscreen
Processors: 16 × AMD Ryzen 7 7840U w/ Radeon 780M Graphics
Memory: 30.5 GiB of RAM
Graphics Processor: AMD Radeon 780M

ADDITIONAL INFORMATION
https://forums.factorio.com/viewtopic.php?f=7&t=120514
Comment 1 David Edmundson 2024-11-25 14:00:54 UTC
Apps can also provide cursors at pixmaps. This would give us a window rule that wouldn't work reliably, most importantly in the cases where you'd actually want it.