Hi Stefan,

Le 30.03.2018 à 18:54, Stefan Monnier a écrit :
Could add an option to automatically provide the VirtualScreens thingy
based on the xrandr monitor information?
It wouldn't fix those quirks, clearly, but it might encourage people to
use VirtualScreens and in turn to try and fix them.
If we want to go this way, we have to define clearly what VirtualScreens
should provide.
I was thinking of having a new option such as

     VirtualScreensViaXRandR

which would behave as if you had written a VirtualScreens { ... }
section with one virtual screen per monitor.

I perfectly understood, but as I told you, and as you noted by yourself, this feature is bugged. Adding an "automatic" configuration, as easy as it is to implement, will not help it to work better. That is why I propose to define what the VirtualScreens should really provide, before dedicating time to add new configuration option on top of it.

At this time, sharing the same config file for different
size screens is for example de facto problematic (workspace manager
position and other geometry settings).
I think you're referring to yet-another-problem with VirtualScreens.
I agree that there are probably lots of problems to solve there, but
that seems independent from the introduction of VirtualScreensViaXRandR.

I do not develop new features over bugged ones. I prefer to correct bugs first, then add new features. Especially in this context where the design of VirtualScreens is IMHO flawed.

But feel free to implement VirtualScreensViaXRandR, it is really trivial (RLayout->monitors allows you to access all monitors geometries.) As for me, I won't.

Moreover, the actual implementation of this feature really complicates
the code.
Which feature?  VirtualScreens?  or VirtualScreensViaXRandR?

VirtualScreens.

Check the code, removing VirtualScreens handling would over-simplify the code.

The way VirtualScreens currently tries to work is almost the same as having 2 (or more) X11 screens (:0, :1, ...) In a Xinerama (XRandR now) environment, it is a bit weird, no? Best disable Xinerama/XRandR and let the X11 server handles screens independently of each others: ctwm works very well in this case, with the ability to have a config file for each screen without any problem, even when the screens do not have the same size.

++

Max.

Reply via email to