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
Can reproduce.
Seems Plasma6/Qt6
It seems with Qt 6.6 / plasma 6, in such cases the tooltip would get mostly offscreen.
This is not a bug in kwin, but in Qt trying to retrofit into Wayland's difficult design. It is known in Qt.