https://insights.stackoverflow.com/survey/2020#technology-mo...
1,496 karma · joined August 16, 2019
https://insights.stackoverflow.com/survey/2020#technology-mo...
If you find a definition of merit that everyone can agree on, please let us know, because that would be news to me. In my experience in the US at least, most people seem to object to there being a central organization that decides who has merit and who doesn't.
If you want other examples of people who are pissed off at the concept of merit for other reasons, talk to some PhDs (or other holders of high academic merit) that are struggling to find work.
(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)
In 2021 I don't believe client-side decorations are something anyone can avoid, on any platform.
I would not say that Sway is doing anything special here, what they have done is exactly what I was saying earlier: placed the unstable private APIs in the Wayland protocol, with all the problems that entails. Applications should probably not be consuming those APIs directly, they will likely want to go through an abstraction layer.
There are also ways to sandbox X11, it's a bit harder to do, but you do have some options on how you'd like to do things.
In almost all cases, Wine should viewporter or use fullscreen-shell to set custom resolutions for specific programs, the only reason you would need to allow wine to have access to an xrandr-like API is if you wanted to run your monitor configuration tool from windows, which I strongly doubt people are wanting to do that. If you are using GNOME/KDE, the GNOME/KDE control panel is always going to be the most reliable way to configure that.
Yes you would need to track upstream and keep up with their unstable APIs in order to write such a library that but that's no different than if you asked upstream to do it, they would just be doing that in their tree. (In some cases this is what they do anyway with the xdg-desktop-portal) In any case you would need to be more specific about what it is you want because just saying "implement everything from X11 exactly the way X11 does it" is not useful, that's never going to happen, so let's focus on what actually it is that is needed.
For controlling monitor outputs and open windows, those APIs are different because each compositor has a different set of features for what those mean. Generally you should not be using random applications to configure monitor outputs, only your compositor's configuration tool is going to be reliable there. Applications that need to set custom resolutions can use the viewporter or use fullscreen-shell.
Worst case scenario if you need to duplicate parts of the code for all three, I don't think that's a problem. Just put it in a library if it needs to be re-used, the only alternative there is that upstream maintains the relevant bits of that duplicate code, which I'm sure you can see why they would be reluctant to do that.
Yes it's in another API and technically not in the Wayland protocol but the functionality is there. It wouldn't make sense to expose all private state of the display server over the Wayland protocol.
Edit: AFAIK the only real reason X11 needs special support is because functionality that would normally be provided by an X window manager needs to be provided by the Wayland compositor, most of the heavy lifting translating the X11 protocol is done out-of-process in XWayland. The amount of code needed there on the Wayland server side is actually not particularly large, I don't know enough about all usages of the Win32 API to say how that compares.
Just my observation, asking for X11-style sandbox escapes to support Wine is a mistake, it's much better to work with the system so it becomes feasible to run Wine applications within a sandbox. It just doesn't make sense to break Wayland's design because of other insecure legacy designs in the Win32 API.
Edit: I read your comment again and I also am not quite sure what you're objecting to. If there was a movement by wheelchair-bound folks to convince a company to build wheelchair ramps, I certainly hope we would value their arguments over able-bodied folk, because the entire point is they're speaking out about what their experience as a minority person is, and what needs to be done for them to get equal access to a company space. Are you saying their attributes as a wheelchair-bound person wouldn't be important to making that argument?