qtile icon indicating copy to clipboard operation
qtile copied to clipboard

Something is wrong with the mouse focus of certain windows

Open TinyAtoms opened this issue 3 years ago • 4 comments

The issue:

Something is wrong with the focus of firefox windows

Problem

The issue is a bit hard to describe, and similar to this issue. I have tried the proposed fixes over there, but they don't work. It might also be the same as #3697 but that one doesn't mention it only happens to specific windows.

Say I have windows open with following group and layouts: |firefox|terminal| <- group 1 | spotify| terminal| <- group 2 |librewolf| terminal| -< group 3 When I try to interact with spotify in group 2, when it is supposed to be in focus and the border color is making it clear it is focused, none of my clicks register there, instead they go to firefox. Same if I try to interact with librefox, they go to firefox. Well, to say that they go to firefox is a simplification. It goes to whichever of [firefox/spotify/librefox] was opened first. If I open firefox and then spotify, the clicks from spotify go to firefox, but if I open spotify and then firefox, the clicks of firefox go to spotify. I have tried it with follow_mouse_focus true and false since the mentioned issue specifically mentions that, but it makes no difference.

Affected apps

discord-canary (discord_arch_electron from AUR does not have the issue) firefox librewolf spotify

Environment

Qtile for wayland on Arch linux. qtile 0.21.0 wlroots 0.15.1-6 firefox 103.0.2-1 librewolf-bin 103.0.201 (AUR) spotify 1:1.1.84.716-2 Dunno if you need these, but here they are wayland 1.21.0-1 wayland-protocols 1.26-1 xorg-xwayland 22.1.3-1 python-pywayland 0.4.14-1

Required:

  • [X] I have searched past issues to see if this bug has already been reported.

TinyAtoms avatar Aug 14 '22 04:08 TinyAtoms

Please could you test with the git master version of Qtile to see if it persists? We had a similar issue which was (at least partially) resolved.

Are you running firefox with MOZ_ENABLE_WAYLAND=1?

m-col avatar Aug 14 '22 09:08 m-col

Launching firefox and librewolf with MOZ_ENABLE_WAYLAND=1 firefox/librewolf does fix the issue for them. I will try out the git master version later today to check if the issue is present between discord-canary and spotify, since I can't set flags for those.

TinyAtoms avatar Aug 14 '22 15:08 TinyAtoms

The issue is not present in https://aur.archlinux.org/packages/qtile-wayland-git (which uses the master branch of this repo, right?)

TinyAtoms avatar Aug 14 '22 20:08 TinyAtoms

Looks like duplicate of #3697 and #3675. As noted this issue appears for xwayland windows under wayland.

So @TinyAtoms it would be expected that this bug stops affecting you for Firefox when you start running it natively under Wayland.

3nprob avatar Aug 17 '22 04:08 3nprob

The issue is not present in https://aur.archlinux.org/packages/qtile-wayland-git (which uses the master branch of this repo, right?)

Yep exactly.

Looks like duplicate of https://github.com/qtile/qtile/issues/3697 and https://github.com/qtile/qtile/issues/3675. As noted this issue appears for xwayland windows under wayland.

Cool, makes sense. Closing in favour of those issues. Thanks for the report :)

m-col avatar Oct 28 '22 23:10 m-col