Originally posted by kmansoft
View Post
https://gitlab.freedesktop.org/xorg/...e_requests/733 - that's the most active discussion, although the MR author is not responding to maintainer's concerns.
It's painful to watch honestly, but I don't have the skills required to maybe try and push that a little instead of just complaining. I would literally need to learn about how both protocols and Xwayland work in order to add anything useful to the endless discussion. Even well skilled people couldn't sort that out for years so it's unlikely that I could as a dumbass. Where do I even start learning? Maybe I'll start building stuff with those patches and just experiment and see what does what?
AFAIK the whole idea is to allow to change global scaling factor of X11 (which I believe is root window property, but I might be wrong) on the fly by a compositor (or by Xwayland) whenever it decides to make the change, e.g. an event triggered when a window on a screen with different scaling factor is focused. That's not enough because windows would resize unnecessarily, so the compositor would also be responsible for rescaling too big windows down. That would be almost good, but I'm not sure about fractional scales.
GNOME now does more-or-less that, but only when changing the "primary display" - which is fine for simple use-cases, but still problematic otherwise.
Interesting idea I read about is sandboxing X11 apps each in separate Xwayland instance. It works more or less like that in Qubes OS where apps are running in separate VMs. That would bring some security pros, but also make it difficult to support stuff like dnd/clipboard i suppose. If that's possible to implement such solution in a reliable manner anyway.
Leave a comment: