Bug 501691 - Popup position is wrong for rotated applets on a desktop and popup flashes if the mouse cursor hovers over it
Summary: Popup position is wrong for rotated applets on a desktop and popup flashes if...
Status: CONFIRMED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Containment (show other bugs)
Version: 6.3.3
Platform: Other Linux
: NOR minor
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-18 13:05 UTC by ratijas
Modified: 2025-03-19 21:03 UTC (History)
4 users (show)

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


Attachments
rotated applet popup (307.72 KB, video/mp4)
2025-03-18 13:05 UTC, ratijas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ratijas 2025-03-18 13:05:29 UTC
Created attachment 179536 [details]
rotated applet popup

SUMMARY
Popup position of applets is calculated without taking applet's rotation into account, as a result a popup is either displaced far away from the cursor or right under the cursor. In the later case, the popup would then disappear because it blocks the mouse hover for its applet, and thus enter the never-ending cycle of hover->appear->leave->disappear.

STEPS TO REPRODUCE
1. Place an applet on the desktop containment.
2. Enter Edit Mode and rotate the applet about 45° clockwise.
3. Hover over different points of the applet, observe where the popup appears.

OBSERVED RESULT
Popup appears and disappears in a loop.

EXPECTED RESULT
Popup should be correctly positioned, taking applet's rotation into account.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.13.6-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 9 7940HS w/ Radeon 780M Graphics
Memory: 60.6 GiB of RAM
Graphics Processor: AMD Radeon 780M

ADDITIONAL INFORMATION
Positioning is also off for buttons of the Edit Mode overlay toolbar ("Click and Drag to Rotate", "Configure", "Show/Hide background", "Remove" buttons).
Comment 1 TraceyC 2025-03-19 20:15:00 UTC
Note: In the screen recording, the tooltip flashing only happens when the tooltip appears where the mouse cursor is
There are at least three digital clock widgets, each with a different time zones configured


On git-master, I am able to reproduce the tooltip flickering with that widget, but not others
I am also able to see the tooltips for the edit controls are too far from their control


With Daily Forecast, I was not able to reproduce the tooltip flickering. The tooltips appear near the bottom of each day. The pop-up text appeared once, and stayed in place, when I hovered the mouse over a day. 
I *did* notice that the tooltips were further from the associated day than when the widget is not rotated

I was also unable to reproduce the tooltip flickering with the Bluetooth widget, again because the tooltips appear in a place the mouse cursor will never overlap.
Comment 2 Nate Graham 2025-03-19 21:03:08 UTC
I can reproduce this with a Bluetooth widget. The flickering is an artifact of the tooltip appearing right underneath the cursor, which triggers the code to hide. It's a side effect of the underlying issue, which is the mis-positioned popups.