Bug 473347 - Tooltips overlap menu items when there's no space on the right side
Summary: Tooltips overlap menu items when there's no space on the right side
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.27.7
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-13 19:09 UTC by guimarcalsilva
Modified: 2024-06-04 12:35 UTC (History)
3 users (show)

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


Attachments
Tooltip overlaps menu when there's no space on the right side - It should go to the left side instead (2.65 MB, video/mp4)
2023-08-13 19:09 UTC, guimarcalsilva
Details

Note You need to log in before you can comment on or make changes to this bug.
Description guimarcalsilva 2023-08-13 19:09:35 UTC
Created attachment 160937 [details]
Tooltip overlaps menu when there's no space on the right side - It should go to the left side instead

SUMMARY
In some applications like Dolphin and Gwenview, some menu items have tooltips attached to them. When hovering over a menu entry with the mouse, usually those tooltips are placed on the right side of the menu item, however, if no space is available, instead of going to the left side of the menu, it's placed on top of the menu entry, making it difficult to select the option underneath. The attached video shows the behavior when there's space to the right and when there isn't.


STEPS TO REPRODUCE
1. Open Gwenview (or Dolphin)
2. Open the hamburger menu 
3. Place the window on the right side of the display near the edge, or maximize the window
4. On Gwenview, hover over "Open...", in Dolphin hover over "Select Files and Folders".

OBSERVED RESULT
The tooltip appears on top of the button, interfering with its selection

EXPECTED RESULT
The tooltip should aim to appear on the left side of the menu if there's no space on the right.

SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.27
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10
Kernel Version: 6.2.0-26-generic (64-bit)
Graphics Platform: Wayland
Processors: 6 × Intel® Core™ i5-9400F CPU @ 2.90GHz
Memory: 15,4 GiB of RAM
Graphics Processor: AMD Radeon RX 570 Series
Comment 1 Nate Graham 2023-08-14 04:01:39 UTC
Can reproduce.
Comment 2 Méven Car 2023-08-23 11:28:02 UTC
Seems Plasma6/Qt6
Comment 3 Méven Car 2023-08-23 11:29:32 UTC
It seems with Qt 6.6 / plasma 6, in such cases the tooltip would get mostly offscreen.
Comment 4 David Edmundson 2024-06-04 12:35:53 UTC
This is not a bug in kwin, but in Qt trying to retrofit into Wayland's difficult design.
It is known in Qt.