Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No focus when using --fill #213

Open
Rintse opened this issue Sep 15, 2022 · 4 comments
Open

No focus when using --fill #213

Rintse opened this issue Sep 15, 2022 · 4 comments

Comments

@Rintse
Copy link

Rintse commented Sep 15, 2022

The tool works fine when run without arguments.
However, when I call it with wmfocus --fill, it does not actually focus the matched window.

untitled.mp4

In the debug mode I cannot see anything going wrong.

How would I go about debugging this?

@shopeonarope
Copy link

I am experiencing this too. I have multiple monitors and focusing works when targeting windows on other monitors but not windows on the monitor where the current window exists.

@shopeonarope
Copy link

I did some debugging by subscribing to the window message bus

i3-msg -t subscribe '[ "window" ]' -m | stdbuf -i 0 jq 'select (.change == "focus") | {change, class: .container.window_properties.class}'

and found that when --fill is specified the requested window does get focused but the window with the mouse gains the focus back immediately.

@z1gc
Copy link

z1gc commented Mar 27, 2024

Having the same issue, seems like the "overlays" created by wmfocus are handled by i3 as well. I have a workaround to close those overlays first, then do the focus: z1gc@769b4b3 (not very familiar with x11, so it just a workaround :)

@plurry
Copy link

plurry commented May 11, 2024

--fill is broken for me too.

Having it working isn't important enough for me to patch it myself, but I would like to use it whenever the main package gets updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants