-
Notifications
You must be signed in to change notification settings - Fork 134
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
prevent an application from stealing focus #732
Comments
Hello @divansantana, I'm not sure how that happens. Could you provide debug logs? See https://github.com/ch11ng/exwm/wiki/Home/_edit#how-to-report-a-bug. Also, which application is that? |
It's davmail for 0.23 exwm I get this bug when I'm not connected to the company VPN and it tries Basically it brings a davmail screen to the foreground, then
I think it's legit that davmail goes to the foreground, because it So basically a way to force an app to not go to the foreground, if I followed those debug instructions:
GNU Emacs 26.3 (build 1, x86_64-unknown-linux-gnu, GTK+ Version 3.24.14) |
Thank you. The app sends _NET_ACTIVE_WINDOW, which is handled here: https://github.com/ch11ng/exwm/blob/master/exwm.el#L446-L460 You could try adding a condition there that filters your app. We could add a buffer-local variable that lets us disable focus grabbing on a per-app basis. It'll take some time... |
Cool, I'll try that thanks!
That would be nice. |
Some applications send _NET_ACTIVE_WINDOW to activate their window. EXWM respects this message always and brings such up into focus. This might be unintended and there should be a way to turn this off. In my case the app is Spotify desktop client installed from Flatpak. Fixes ch11ng/exwm#732
Some applications send _NET_ACTIVE_WINDOW to activate their window. EXWM respects this message always and brings such up into focus. This might be unintended and there should be a way to turn this off. In my case the app is Spotify desktop client installed from Flatpak. Fixes ch11ng/exwm#732
Some applications send _NET_ACTIVE_WINDOW to activate their window. EXWM respects this message always and brings such up into focus. This might be unintended and there should be a way to turn this off. In my case the app is Spotify desktop client installed from Flatpak. Fixes ch11ng/exwm#732
I can't seem to get this right. How can I prevent an app from stealing focus? ie a buggy application will come to the foreground while I am busy on something (only to disappear a moment later).
The text was updated successfully, but these errors were encountered: