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
I am working on a branch to migrate waybar to gtk4. One issue I've run into is that if the bar is on the bottom , then tooltips are shown off screen, because they are drawn underneath the bar instead of above.
This is partly due to the fact that GTK seems to always try to draw the tooltips below the target widget, however, It also seems that sway (or maybe wlroots?) isn't properly configuring the xdg_popup for the tooltip and constraining it to the screen.
If I make a normal floating window, with a single label, and put it down at the bottom of the screen, the tooltip is correctly positioned above the mouse, and I see an xdg_popup.configure event from sway telling it that it has configured the popup above the window.
However, with waybar, which uses the layer shell, the configure event says to place the popup below, even though that is off screen.
I'm guessing the constraint logic just isn't being used for the layer shell.
sway version 1.10
Description
I am working on a branch to migrate waybar to gtk4. One issue I've run into is that if the bar is on the bottom , then tooltips are shown off screen, because they are drawn underneath the bar instead of above.
This is partly due to the fact that GTK seems to always try to draw the tooltips below the target widget, however, It also seems that sway (or maybe wlroots?) isn't properly configuring the xdg_popup for the tooltip and constraining it to the screen.
If I make a normal floating window, with a single label, and put it down at the bottom of the screen, the tooltip is correctly positioned above the mouse, and I see an xdg_popup.configure event from sway telling it that it has configured the popup above the window.
However, with waybar, which uses the layer shell, the configure event says to place the popup below, even though that is off screen.
I'm guessing the constraint logic just isn't being used for the layer shell.
Debug logs
Here are the logs from WAYLAND_DEBUG=1 of my version of waybar, showing the tooltips off screen:
https://gist.github.com/tmccombs/3b55e689d51abbbd7d2235e4e5c36035
The text was updated successfully, but these errors were encountered: