noctalia-shell icon indicating copy to clipboard operation
noctalia-shell copied to clipboard

[BUG] Bar widget tooltips near edge of screen are cutoff

Open tylerclair opened this issue 1 month ago • 2 comments

Submission checklist

  • [x] I have searched existing issues and confirmed this is not a duplicate.
  • [x] I am using the latest available version of Noctalia.

Bug description

When hovering over widgets in the bar the tooltips that are close to the edge of the screen are cut off.

Steps to reproduce

  1. Hover over a widget that has a tooltip close to the edge of the sceen
  2. Tooltip will be cut off

Expected behavior

The tooltip should move to avoid being cutoff

Actual behavior

The tooltip is cut off

https://github.com/user-attachments/assets/bb8ef1a8-6dab-47ac-803d-97ab0e628888

Logs / error output

2026-10-23 12:51:20.400 [DBG] [surface] fractional scale preferred output=eDP-1 surface=0x7ff00a6b38e0 scale=1.000 raw=120/120 logical=294x81 buffer=294x81
2026-10-23 12:51:21.729 [DBG] [surface] fractional scale preferred output=eDP-1 surface=0x7ff00a6a4480 scale=1.000 raw=120/120 logical=302x81 buffer=302x81
2026-10-23 12:51:24.549 [DBG] [surface] fractional scale preferred output=eDP-1 surface=0x7ff00a717e00 scale=1.000 raw=120/120 logical=294x81 buffer=294x81
2026-10-23 12:51:26.712 [DBG] [surface] fractional scale preferred output=eDP-1 surface=0x7ff0073c58e0 scale=1.000 raw=120/120 logical=302x81 buffer=302x81
2026-10-23 12:51:34.336 [DBG] [surface] fractional scale preferred output=eDP-1 surface=0x7ff00a738320 scale=1.000 raw=120/120 logical=294x81 buffer=294x81

Noctalia version

noctalia v5.3.0

Compositor

Sway

Distribution

Fedora-based

Environment information

Installation method: Fedora dnf
Graphics: AMD Radeon 780M Graphics [Integrated]

Additional context

No response

tylerclair avatar Oct 23 '26 18:10 tylerclair

This is a Sway bug, fixed in Sway 1.12. Noctalia's tooltips are xdg_popups on the bar's layer surface with SLIDE_X, and noctalia sends xdg_popup.reposition right after showing one and when moving between widgets. On a reposition, wlroots resets the popup to its unconstrained position and expects the compositor to apply the slide again. Sway 1.11 only did that when the popup was first created (swaywm/sway#8518, fixed by swaywm/sway#9051).

I tested this with Sway nested and noctalia's volume widget at the screen edge. On Sway 1.11 (Fedora 44), the tooltip is first placed at x=1008, which fits, but after the reposition it moves to x=1106 and ends 98 px off screen, like in your video. On Sway 1.12 (Fedora 45) it stays at x=1008, fully visible. Upgrading Sway to 1.12 should fix it.

mirfalltnixein avatar Oct 26 '26 21:10 mirfalltnixein

Thanks for the clarification. I'll wait till Fedora 45 comes out for the update. In the meantime I have adjusted the bar to have a margin at the start and end to accomodate for the moving of the tooltip.

tylerclair avatar Oct 30 '26 20:10 tylerclair