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 for X11 window if mouse is not over it, despite forceinput #1022

Closed
raffaem opened this issue Nov 14, 2022 · 8 comments
Closed

No focus for X11 window if mouse is not over it, despite forceinput #1022

raffaem opened this issue Nov 14, 2022 · 8 comments
Labels
bug Something isn't working

Comments

@raffaem
Copy link
Contributor

raffaem commented Nov 14, 2022

I'm on the git version of hyprland:

❯ pacman -Qm | grep hyprland
hyprland-git r2046.0634abf-1
waybar-hyprland 0.9.15-1

I installed the release version of albert:

pacman -S albert

I want to launch it through the X protocol as it doesn't work well with Wayland, see here.

I've put this in my config file:

windowrule = center,^(albert)$
windowrule = forceinput,^(albert)$
exec-once = QT_QPA_PLATFORM=xcb albert

After albert is launched:

albert &; disown

And shown:

albert show

The floating window does not receive focus if the mouse is not over it, despite the forceinput.

@raffaem raffaem added the bug Something isn't working label Nov 14, 2022
@raffaem
Copy link
Contributor Author

raffaem commented Nov 14, 2022

I can still obtain focus through the movefocus dispatcher, but it seems it is because it moves the mouse

@vaxerski
Copy link
Member

any other app besides albert? It requires a fuckton of deps.

@raffaem
Copy link
Contributor Author

raffaem commented Nov 17, 2022

sorry I don't think I have any other XWayland apps installed.

I also don't use albert anymore.

@niki-on-github
Copy link
Contributor

niki-on-github commented Nov 24, 2022

Since i discovered the issue while implementing noinitialfocus, here is a short description where to look if someone also have such a problem:
The app has probably met one of these rules which is why m_bNoInitialFocus = true; was set and therefore the window don't get the initalFocus. By setting forceinput you have ensure to get the initialFocus because in this line if statement we override the m_bNoInitialFocus to false.

@EpsilonKu
Copy link

any other app besides albert? It requires a fuckton of deps.

Can confirm on ulauncher and catapult on GDK_BACKEND=x11

@LorenzoBettini
Copy link

I can still obtain focus through the movefocus dispatcher, but it seems it is because it moves the mouse

So how do you use the movefocus? In a key binding or in a window rule?

@alba4k
Copy link
Contributor

alba4k commented Aug 18, 2024

@raffaem

@raffaem
Copy link
Contributor Author

raffaem commented Aug 18, 2024

as I said I don't use albert anymore and don't user hyprland either for the time being.

Closing as the issue is now moot.

@raffaem raffaem closed this as completed Aug 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants