149 points · by todsacerdoti · 5y ago · 103 comments
[1]: https://www.mail-archive.com/dri-devel@lists.freedesktop.org...
> We would like to build it such that in theory any Wayland compositor could add support for this mode of operation if they want to remote application to a Windows host (over the network, or on the same box).
I'm not really in the state of mind to fully parse the full email chain, but it sounds like they want the ability to extend Wayland to forward a wayland window/application over RDP to an RDP client. This isn't really WSL2 specific, and could be used to forward applications from a dedicated Linux machine to a Windows client, or maybe even to another Linux host running FreeRDP!
I know the idea of using RDP at all isn't very sexy on Linux, but FreeRDP is nice, and you don't need to use windows at all to benefit from it. IMO it's pretty nice for when you need a detached session, especially per user sessions or multi sessions per user. Definitely better than VNC, again IMO.
And yes, their attitude toward missing features is the same as GNOME's: WONTFIX parade 24/7.
I would hope the Freedesktop group to get active here, as they have been incredibly successful promoting standards in the past and probably could do it again - but it seems like they're closely associated with the Gnome-Project, which has apparently decided to go the "fuck everyone else" route.
(And just IMO, things like layer-shell are not really a solution that fits with Wayland, that just puts us back in X territory where clients can position themselves arbitrarily, steal input and take over the screen)
Yes, in that it’s another much-needed security and architectural improvement. (Bootstrapped Firefox extensions were a huge pain to build.)
https://www.google.com/search?q=%22moving+away+from+x%22+way...
... combined with all the claims that X is abandonware:
Lowering the refresh rate of the display isn't really useful. The refresh rate of the monitor only acts as an upper limit on visual updates - you can always just skip frames at no cost outside display cable bandwidth utilization if you don't want to update.
Note: VRR is unrelated to modesets, works through an entirely different mechanism, and is supported by a few compositors.
woah woah woah there, what about if you have a panning camera shot in a movie at 24 FPS and try to watch that movie on a 60 hz display? You'll get tiny micro-stutters AKA "judder". They're subtle but if you can notice them, they ruin your moviewatching experience every time
The solution to this is higher refresh rate and/or VRR.
VRR would allow you to sync to any needed timing (regardless of VRR range, as multiples of fps are fine), dynamically, with no need to modeset to fixed supported refresh rates.
120Hz not only happens to be a multiple of both 24 and 30, but judder from such low framerate input becomes irrelevant at these rates, with VRR instead serving high-framerate content that is slightly out of phase.
Wayland in a nutshell
Maybe they were just demoing the resolution scaling stuff?
https://news.ycombinator.com/item?id=26176037
It seems like the primary reason is that X has been abandoned by its developers in favor of Wayland.
If you do check X's codebase though, you'll notice it's very well written and completely maintainable.
As an example, people often say you can fake input on X and therefore it's insecure, but fake input on X (XTEST) sets a boolean send_event that the receiving application can check to see if the event was sent from another application. Most apps ignore that, but Wine drops any event marked as send_event. I do not like this solution. Instead, inter-process access control lists could solve this easily and would not be hard to implement. Yet, some people think throwing 30 years of solid codebase down the toilet and pushing an inferior product is a better solution. Those people have no idea about X programming or its internals and are just echoing a mantra.
I'm still horrified by the coupling with each WM or DE that need to reimplement (or use a lib, but that's as interesting as noting that you could reimplement an HTTP server in each high level app by using an HTTP server lib...) all the features of the graphics server.
Are there other examples of systems doing that for their graphic stack, particularly at this level? It feels wrong. It feels almost as wrong as it felt with BeOS depending on the G++ 2.95 ABI for its platform interfaces...
In 2021 I don't believe client-side decorations are something anyone can avoid, on any platform.
No, it doesn't work natively on wayland. It does work using Xwayland, as do many other applications that haven't been ported to wayland. There are some cases where Xwayland doesn't work, though, and those will likely be the toughest things to deal with when adding wayland support as well. It's quite possible this will result in changes to wayland protocols.
The only gotcha was the need to use 3 backbuffers for Vulkan (in dxvk config), otherwise framerate was capped at monitor refresh rate by KWin.
Can this project actually render Windows windows on Wine or is it only for fullscreen games?
Bridging the windowing semantics is difficult indeed as the Wayland approach doesn't let clients introspect the windowing system or absolutely position themselves, but it doesn't mean you can't get quite far with the excellent relative positioning provided by the xdg-shell/xdg-popup protocols, for example.
The video in the article demonstrates Notepad and other windowed apps.
edit: my mistake, the difference is actually that this one doesn't support Vulkan, and the project I linked only supports Vulkan. So, for playing games with DXVK, the linked project is the more useful one.
It is my understanding that the WinAPI requires absolute window positioning to function. — has Wayland since offered that?
[1] https://www.collabora.com/news-and-blog/news-and-events/a-wa...
https://www.winehq.org/pipermail/wine-devel/2021-February/18...
That having been said, I share some of the concerns that Wayland is pushed, not as an alternative to X11 but as a replacement that many powerful players insist must and shall replace X11, all the while lacking many features that X11 has and that are used.
I am betting on wayland long term, though I still have X11 a lot of places.