-
Notifications
You must be signed in to change notification settings - Fork 93
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 way to prevent focus stealing #646
Comments
Are you sure you mean "allow"? The goal is to prevent focus stealing, that's the opposite of allowing notifications, right? To be clear, I'm requesting about getting the setting "Prevent windows which require attention from stealing focus", which was removed from cinnamon, back. Firefox was just an example here. Changing settings in firefox won't bring back the ability in cinnamon to prevent windows from stealing focus. The active workspace is physically switching, with a shifting animation, to a different one that I'm currently working on. That's cinnamon or muffin doing this, Firefox settings won't change this right? and Firefox settings won't prevent other applications from causing this. |
Thanks for showing the demands-attention-passthru-wm-classes setting, I'll try it out and hope it'll work! I removed firefox from it, it still appears in the foreground when launching a new instance, not sure if that's a sign the setting may not be working... About allowing notifications stopping window focus stealing: do you mean both firefox and chromium will, if you disallow notifications, not ignore the notification but instead use an even more intrusive (=automatically switching your workspace) way to show the notification? About adhering to strict standard rules: is it at least possible to have user settings that allow the user to choose how to respond to the x server focus events, including e.g. a setting such as "don't switch workspace" or so? Thanks! |
I think it's usually when opening an additional window, but it's not an every time thing. Also, the 'grouped window list' applet should now notify you when that alarm goes off by flashing a temporary button in the list, but this isn't implemented (I realized this investigating this issue yesterday). The old window list does this correctly:
I'm pretty sure it's google calendar actually creating the notification (the popup message looks identical in both browsers), but yes it seems like the default behavior is grab focus for the browser window.
The only option is to either bring you to the window, or to bring the window to you - "Bring windows that require attention to the current workspace" in Window preferences. That's the whole problem here - we (in this case Cinnamon) can't tell if it's a legitimate user-initiated action or not - you could be working in a different workspace and click a hyperlink in a program or document, and you would typically want to automatically focus the browser. In any other situation it should simply tell Cinnamon 'hey when you've got a moment...' - the window list applet would flash a red button and if you click it, then it would switch workspaces and focus the window (this works for most other applications). dry reading: |
Issue
When using multiple desktops and an application wants attention, cinnamon/muffin will steal focus and may then also change your workspace to the workspace in which this application was.
There's no setting to disable this. Cinnamon used to have the setting "Prevent windows which require attention from stealing focus", but this setting was removed in: linuxmint/cinnamon@811a285
There doesn't seem to be any setting that replaces this removed setting, and the current behavior looks like it steals focus and switches workspace
Steps to reproduce
Use multiple workspaces in cinnamon. Have firefox with google calendar in one workspace, and have an event in it that triggers a notification in 1 minute.
Go to another workspace, and do something else like typing text in some text editor. Wait one minute. After 1 minute automatically the desktop shifts to the one with firefox to show the calendar notification.
Please note that firefox/calendar is just used as an example here, this applies to any window that requires attention and the ability to turn it off for all.
Expected behaviour
There is a setting to turn off the focus stealing, so the current window you're using does not lose focus, and your workspace stays on the current one and does not shift to a different workspace in which a window wants attention.
Other information
The text was updated successfully, but these errors were encountered: