Earlier quoted context omitted.
It uses dynamic tiling rather than static tiling meaning more versatility how specific desktops get arranged such as bsp, tree, or even custom arrangements
I thought Sway was based on i3, which is an arbitrary-width tree that can have different display modes per container node in the tree. Hyperland's wiki only lists "Dwindle" and "Master" layouts, which from the description are strictly less versatile than i3 (and Sway?) in exchange for convenience if those layouts are what you want. Does it even have something as flexible as i3? (and Sway?)
Hyprland: A dynamic tiling Wayland compositor
71–80 of 86 posts
Re: Hyprland: A dynamic tiling Wayland compositor
#72The problem with "alternative" Wayland compositors is that so much more functionality is pushed into the compositor under the Wayland architecture compared to window managers on X11. So it's a ton more work to write a Wayland compositor than an X11 window manager, and most of it is tedious boilerplate that almost certainly has nothing to do with your motivation for writing a new compositor in the first place. This in…
>The problem with "alternative" Wayland compositors is that so much more functionality is pushed into the compositor under the Wayland architecture compared to window managers on X11. That comparison is a bad one to make. Compared to just a window manager, that's correct. But you have to compare Wayland compositors to X11 compositors and for that it's about the same amount of work. Either one expects you to bring you…
Re: Hyprland: A dynamic tiling Wayland compositor
#73Earlier quoted context omitted.
> No, all those can be solved with client libraries. There is no easy way to open a Window and render a string. Period! You either need to write it yourself completely (as OP stated) or you can use Gtk/Qt or other heavy weight "client libraries" (cairo and freetype do not create Wayland windows and therefore are not applicable here). Look at the code again! If you really think that the code at [1] is in any way a gre…
That’s just optimizing for the wrong thing. Why should it be easy to write from zero a “hello world” window? Where would you go from there, what’s useful about that? Should it also handle inputs, redraws, widgets, layouting?
Re: Hyprland: A dynamic tiling Wayland compositor
#74Earlier quoted context omitted.
> No, all those can be solved with client libraries. There is no easy way to open a Window and render a string. Period! You either need to write it yourself completely (as OP stated) or you can use Gtk/Qt or other heavy weight "client libraries" (cairo and freetype do not create Wayland windows and therefore are not applicable here). Look at the code again! If you really think that the code at [1] is in any way a gre…
>There is no easy way to open a Window and render a string. Period! Yes, there is. Use a client library. That's what they're for. >You either need to write it yourself completely (as OP stated) or you can use Gtk/Qt or other heavy weight "client libraries" This is exactly the same as in X11. Remember Xlib is one of those heavy weight client libraries. The X11 example you showed uses Xlib. >Look at the code again! If…
Re: Hyprland: A dynamic tiling Wayland compositor
#75Earlier quoted context omitted.
It already exists and its called xwayland. Most wayland compositors also have X11 WM inside them...
You misunderstand: I'm not talking about the X protocol, I'm talking about some new all Wayland thing just so window managers can be separated from the other things you'd otherwise have to implement.
Re: Hyprland: A dynamic tiling Wayland compositor
#76Earlier quoted context omitted.
That’s just optimizing for the wrong thing. Why should it be easy to write from zero a “hello world” window? Where would you go from there, what’s useful about that? Should it also handle inputs, redraws, widgets, layouting?
[flagged]
What the hell does this have to do with user experience?
Dev experience? Compared to what exactly? You have 10 hello world windows floating around or what are you talking about?
X11 and the whole desktop linux world is a huge vulnerability, not letting a random install script/dev tool become trivially a keylogger is not security theater. vsync is not mandatory, you know that right? It can be controlled by an app, e.g. games can control it themselves. Outside of that, why would you want tearing?!
Worse performance? Is that why embedded systems actually prefer wayland solutions over literally embedding a huge monolith? It has as many functionality as you implement..
I’m fairly sure that a bug in xserver will bring down the whole system. There is nothing inherent in wayland demanding a monolithic approach, you can have a server maintaining connections to clients and a plugin that handles the window management part that can be restarted.
You managed to not have a single valid point, congrats!
Re: Hyprland: A dynamic tiling Wayland compositor
#77Earlier quoted context omitted.
[flagged]
That tinfoil hat looks good on you! What the hell does this have to do with user experience? Dev experience? Compared to what exactly? You have 10 hello world windows floating around or what are you talking about? X11 and the whole desktop linux world is a huge vulnerability, not letting a random install script/dev tool become trivially a keylogger is not security theater. vsync is not mandatory, you know that right?…
Avoiding tearing inevitably involves adding latency (the data is ready, render half a frame now or wait for vsync?) Some might consider it worthwhile to give up frame-perfection in exchange for getting as much data to the user as fast as possible; that's valid. Latency isn't just important for games, it colors every interaction we have with the computer.
Re: Hyprland: A dynamic tiling Wayland compositor
#78Earlier quoted context omitted.
>There is no easy way to open a Window and render a string. Period! Yes, there is. Use a client library. That's what they're for. >You either need to write it yourself completely (as OP stated) or you can use Gtk/Qt or other heavy weight "client libraries" This is exactly the same as in X11. Remember Xlib is one of those heavy weight client libraries. The X11 example you showed uses Xlib. >Look at the code again! If…
[flagged]
That's literally what I just said? The glpyhs get rendered client side and then composited in the server.
>What is your agenda? I truly don't understand.
I don't have an agenda. Do you have to assume everyone has one? Please just take my comments at face-value.
Re: Hyprland: A dynamic tiling Wayland compositor
#79Earlier quoted context omitted.
That tinfoil hat looks good on you! What the hell does this have to do with user experience? Dev experience? Compared to what exactly? You have 10 hello world windows floating around or what are you talking about? X11 and the whole desktop linux world is a huge vulnerability, not letting a random install script/dev tool become trivially a keylogger is not security theater. vsync is not mandatory, you know that right?…
>why would you want tearing?! Avoiding tearing inevitably involves adding latency (the data is ready, render half a frame now or wait for vsync?) Some might consider it worthwhile to give up frame-perfection in exchange for getting as much data to the user as fast as possible; that's valid. Latency isn't just important for games, it colors every interaction we have with the computer.
What I mean here is the rendering in clients isn't going to change either way, everything is already built to use vsync. Turning it off is more a matter of how many switches the compositor wants to provide for controlling the throttle. Most compositors should have support for fullscreen unredirect anyway, and that gets you most of the way there.
EDIT: A few years ago this blog by Raph Levien sketched out a way to reduce latency without bringing back tearing, you may want to read it. https://raphlinus.github.io/ui/graphics/2020/09/13/composito...
Re: Hyprland: A dynamic tiling Wayland compositor
#80Earlier quoted context omitted.
>The problem with "alternative" Wayland compositors is that so much more functionality is pushed into the compositor under the Wayland architecture compared to window managers on X11. That comparison is a bad one to make. Compared to just a window manager, that's correct. But you have to compare Wayland compositors to X11 compositors and for that it's about the same amount of work. Either one expects you to bring you…
It's not a bad comparison to make when people are writing entire new compositors just to provide, say, a tiling experience - exactly the way they used to write window managers. I understand you're trying to be "fair" to Wayland here but the fact is there is a lack of an abstraction boundary where there used to be one. Maybe that abstraction boundary can be reinstated by a well-written compositor with a plugin archite…