lxqt / lxqt-panel

The LXQt desktop panel
https://lxqt-project.org
GNU Lesser General Public License v2.1
193 stars 135 forks source link

Prevent panel from accepting focus with some Wayland compositors #2153

Closed tsujan closed 1 month ago

tsujan commented 1 month ago

Unfortunately, several Wayland compositors won't let panel popups have focus if the panel does not accept focus.

However, some compositors don't have this issue, and we can use KeyboardInteractivityNone with them. The patch does that for kwin_wayland, 'wayfire' and 'hyprland', and with Qt ≥ 6.8 (because I'm not sure it works with previous versions of Qt).

NOTE: This is an ugly patch, but the current situation of Wayland compositors isn't better. The patch can be considered as a temporary solution.

tsujan commented 1 month ago

It looks it's working only for kwin_wayland

Sorry, my bad! I think it works now; please try again (kwin_wayland is OK).

tsujan commented 1 month ago

Thanks for the tests! Only you could do it.

Once in a while, we can easily check whether another compositor has been fixed. For example, under labwc, we can start the panel in a terminal after exporting XDG_CURRENT_DESKTOP to LXQt:wayfire:wlroots in the same terminal; if Fancy Menu has focus, the issue is fixed and we can add labwc to the list.