You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(gui): stop pinning balloon/tooltip popups to Wayland's active window
NotificationBalloon and GotItTooltip were separate Qt::Tool top-level
windows positioned via absolute screen coordinates. Wayland gives clients
no global coordinate space and ignores/reinterprets such requests for
toplevels, so the compositor placed them near whatever window currently
had focus instead of the intended anchor (e.g. a balloon anchored to the
main window showing inside an unrelated dialog on top of it).
Both now stay plain child widgets of their anchor, positioned in its
local coordinate space, which needs no protocol-level placement and works
identically on X11 and Wayland.
Also fixes GotItTooltip sizing too small for wrapped body text:
sizeHint() measured height against the layout's pre-resize width instead
of the fixed TOOLTIP_WIDTH about to be applied; now uses
layout()->totalHeightForWidth() at that width.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
0 commit comments