wmww / gtk-layer-shell

A library to create panels and other desktop components for Wayland using the Layer Shell protocol
GNU General Public License v3.0
313 stars 15 forks source link

Fix for focus dead zone causes tooltips to be incorrectly located #163

Closed spl237 closed 1 year ago

spl237 commented 1 year ago

See screenshot: 20230502_07h54m55s_grim

The fix for the focus dead zone (https://github.com/wmww/gtk-layer-shell/pull/161) causes tooltips to appear at the top left of the screen rather than aligned with the relevant widget.

Removing the dead zone fix restores tooltips to the correct position.

spl237 commented 1 year ago

As a quick and dirty hack, changing the line

gtk_window_move (x, y);

in the patch to

if (gtk_window_get_type_hint (gtk_window) != GDK_WINDOW_TYPE_HINT_TOOLTIP) gtk_window_move (x, y);

fixes the problem while also getting rid of the dead zone, but this is probably not the correct approach, not least because I don't know which other window types might be affected.