On Fri, May 18, 2018 at 12:18 AM, Stefan Baur <X2Go-ML-1@baur-itcs.de> wrote:
Am 17.05.2018 um 23:21 schrieb Ulrich Sibiller:
Also I suppose we should automatically disable the magic pixel when there's no window manager running. What do you think?
Wait, no. Let's not get confused here. Magic Pixel *is* effectively disabled when there is no Window Manager running, because the command "minimize" is sent to a WM. If there is none, nothing happens. That is fine how it is. No further action needed.
The problem arises on systems that have a Window Manager (like OpenBox), but no task bar, so no way to un-minimize the X2Go/NX-window once the user hits the magic pixel. And we need a way to disable the magic pixel there, because we need OpenBox for several reasons and can't just ditch it to fool NX. So instead of detecting the presence of a Window Manager, we'd need to detect the presence of a task bar. Which, I'd guess, isn't as easy.
Taskbar detection would be plainly wrong. It is completely up the window manager how iconification (and that is what we really talking about, IMHO) is handled. So it totally depends on the window manager what you see and what you can (or can't) do.
Uli