0
Update: This question may have been driven by some bad assumptions. I've closed the loop with an answer. I'll leave the question in place in case anyone else jumps to similar conclusions (or can add any insight).
Most Linux desktop environments include the feature of multiple workspaces. My recollection is that until recently, all or most would "auto-focus". This is what I mean:
Say you have your email client open in workspace 1 and your web browser open in workspace 2. You are in your email client, and a message there contains a web link. The behavior used to be that clicking on the link took you to a view of it. That is, the link was opened in the browser and workspace 1 was automatically switched to workspace 2 to make the web page visible with just the original click on the link.
This behavior recently changed. With most desktop environments, the auto-focus stopped working. Clicking the link would open it in the browser, but the workspace action would be one of these:
- No indication that anything happened, but if you switch to the browser's workspace, the link will be open there.
- The system tray icon for the browser's workspace indicates a change there, like via changing color, but you must manually switch to that workspace to see it.
- The browser gets sucked from its own workspace to the email client's workspace in front of the email client ready to view (then must be manually moved back to its own workspace).
This happened in KDE (my preferred DE), and I thought it was just a distro bug. I tried all of the major KDE distros (including Neon, which is KDE's own distro), and they were all the same. So maybe it was a KDE bug.
I started looking at other DEs to use until KDE got its act together. I don't know about Gnome (I find that impossible to use), but at least Mate, Xfce, LXDE, and LXQT all now also fail at auto-focus (across distros).
Cinnamon is the only major DE I found that still does it "correctly". Budgie works, although that project appears to be all but dead (and Ubuntu Budgie is buggy). Moksha works, but it's only available on Bodhi, and that distro is badly broken.
I'm not a big fan of Cinnamon, so I'm trying to dig deeper to figure out the common denominator. There is a relatively small collection of toolkits that all of these DE features are built from. Since this behavior change is so widespread and happened everywhere at the same time, I'm assuming the issue is with one of those underlying components. If I can identify it, it will make figuring out what will and won't work easier than trial and error, and provide a way to track progress. It also might contribute to getting the issue identified and resolved.
Does anyone know what subsystem is responsible for this workspace auto-focus action?
I've not seen that feature in action but curious, in which DE/distro version has that auto focus feature? – Biswapriyo – 2019-04-08T08:09:40.037
Have you tried checking those DE's settings..? I stopped using KDE few months ago, but till then auto-focus worked there perfectly. I switched from KDE to XFCE and ever since I've been using XFCE the auto-focus feature works perfectly, even now. – Fanatique – 2019-04-08T08:44:37.240
@Biswapriyo, my recollection is that this was the standard behavior for workspaces, with the possible exception of some featherweight DEs and distros. Over the years, I've dabbled with a lot of DEs and dozens of distros. Recent years it's been mostly KDE, mostly Mint, Kubuntu, Manjaro, PCLinuxOS. Now that you mention it, I can't bet the farm on having explicitly tested that on all of the DEs and distros I evaluated. (cont'd) – fixer1234 – 2019-04-08T09:02:03.767
I guess what I'm relying on is the fact that I'm used to it working that way and it's very noticeable and irritating when it doesn't. Outside of what I've used day-to-day, I don't recall any of the others I dabbled with not performing as expected. So I may be extrapolating a little in generalizing. – fixer1234 – 2019-04-08T09:02:09.120
@Fanatique, the plot thickens. Xfce is one of the DEs I was hoping would still work. I looked at a number of distros and none of those worked (Mint, Linux Lite, MX, and a few others). What distro are you using? What model computer? If Xfce works for you, I'm wondering if there is an additional factor driving the behavior (it might not be coincidence that openSUSE is doing some weird stuff related to my graphics hardware). BTW, I'm not aware of any settings for that behavior. – fixer1234 – 2019-04-08T09:30:38.320
@fixer1234 I am using XFCE on Ubuntu 18.04 (the Xubuntu distro). I've also used KDE on Debian 9 a few months ago (Debian hasn't received any updates since) - it worked there for me as well. And I'm on a pretty old desktop machine (not laptop), but I do believe that hardware here does not matter. – Fanatique – 2019-04-08T11:42:16.683
@Fanatique, Xubuntu 18.04 has been out for about a year. I loaded the current LTS (18.04.2), which should be the same as yours if you've done all of the updates. I tested the liveDVD on my laptop. It sucks the browser from its own workspace into the current workspace rather than switching to the browser's workspace. It would be helpful if we can compare setups to identify why the behavior is different. BTW a few months ago might be around the time the change happened, so if KDE was working then, it may have been pre-change. (cont'd) – fixer1234 – 2019-04-08T19:56:04.087
Can you confirm that your Xubuntu has all of the updates (if you downloaded it more than a few months ago and it isn't updated, you could be working with a version that hasn't been affected yet)? If there's no obvious difference, I'm wondering if hardware might indirectly affect it. For example, if the installer picks a certain graphics driver, compatibility might affect something else in the chain, ultimately affecting the ability to auto-switch workspaces. The liveDVD may not reflect a recent change that solved the problem, so I'll install and update it to see if that makes a difference. – fixer1234 – 2019-04-08T19:56:13.673
@Fanatique, just tried installing and updating. Workspace focus still misbehaves for me, and the update broke something (get a message on startup of an error it wants to report to Canonical, the same thing that happened with Ubuntu Budgie). So if your Xubuntu is current with updates and the workspace auto-focus works for you, there must be more going on. It would also kind of point to hardware differences playing some role. – fixer1234 – 2019-04-08T20:57:47.110
@Biswapriyo, thanks for questioning the premise. It encouraged me to double-check my assumptions, which may have been all wet. :-) – fixer1234 – 2019-04-12T22:59:50.547