Bug 504121 - KWin effect to make dialogs expand from the pointer position
Summary: KWin effect to make dialogs expand from the pointer position
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: effects-various (other bugs)
Version First Reported In: unspecified
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-12 21:00 UTC by Fernando M. Muniz
Modified: 2025-06-10 22:56 UTC (History)
3 users (show)

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


Attachments
Concept art. (826.80 KB, video/mp4)
2025-05-12 21:00 UTC, Fernando M. Muniz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fernando M. Muniz 2025-05-12 21:00:29 UTC
Created attachment 181229 [details]
Concept art.

Currently, when clicking on something that opens the File Picker, will cause the File Picker to materialize on the center of the screen.

However, it would be more aesthetically pleasing if it made the File Picker fade and grow from the cursor last click location, somewhat reusing the Panel's animation for launching/minimizing windows.
Comment 1 Nate Graham 2025-05-13 22:03:21 UTC
That's kind of a cool idea. A KWin effect would be necessary for this.

However, the devil's in the details. What if a file picker is invoked from the keyboard, not the mouse? What if an app opens a dialog independent of user action? Then the dialog appearing out of the pointer would feel very weird. And I'm not sure a KWin effect could distinguish the difference.

This is probably something you should prototype yourself to see if you can work out all the issues. Once it's good enough, submit it to KWin!
Comment 2 Fernando M. Muniz 2025-06-10 22:45:06 UTC
Maybe having the effect appear from the last clicked/tapped position would be easier to implement? It would look better when windows don't appear immediately.
Comment 3 Fernando M. Muniz 2025-06-10 22:56:00 UTC
That could solve the problem of the effect not making any sense whenever the keyboard is used instead of the mouse.