Bug 496442 - Window rules should allow setting a custom cursor
Summary: Window rules should allow setting a custom cursor
Status: RESOLVED INTENTIONAL
Alias: None
Product: kwin
Classification: Plasma
Component: rules (other bugs)
Version First Reported In: 5.27.11
Platform: NixOS Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-18 22:56 UTC by riking28
Modified: 2024-11-25 14:00 UTC (History)
2 users (show)

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 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.