On Fri Jan 5 10:09:03 2024 +0000, Rémi Bernon wrote:
(Or use the fact that name is "root" and devmode is NULL in that case)
There are a few things to consider as well when using the current desktop to determine virtual desktop status. We don't want to incorrectly report whether the virtual desktop is on or off. For example, when we use "root" and devmode is NULL and report that virtual desktop is off, we have to make sure that when using a non-"root" or valid devmode desktop can't be interpreted as the virtual desktop is on, because applications can create their own desktops for purposes like sandboxing.
We might also have to consider that when a thread doesn't have enough access to query desktops. I don't know if that's possible.