4 ms·
>> With wlroots you could probably get pretty small, though, but you still have to do rendering et al yourself... Well yes and no. A wayland compositor has to
by phkahler 8y ago
>> With wlroots you could probably get pretty small, though, but you still have to do rendering et al yourself...
Well yes and no. A wayland compositor has to blit the images of the applications which need to draw themselves into buffers. At least that's my understanding of it. The compositor isn't supposed to draw anything, it just copies things to the frame buffer. I would hope a basic compositor could be done with not too much code.
- Sir_Cmpwn 8y agoBlitting and rendering aren't too different. Blitting is pretty inefficient, too, particularly because many Wayland clients render on the GPU and give you an opaque handle to GPU resources so you don't have to copy pixels at all. And you can blit instead of using OpenGL or if you want, but it's still your job to do so on Wayland whereas on X the X server is doing it for you. You also still need to handle input, focus, multihead, etc all yourself.
- renox 8y ago> The compositor isn't supposed to draw anything, it just copies things to the frame buffer. Depends, some of us thinks that server side decorations are better for security, because otherwise a client can fake the look of another client.
- phkahler 8y ago>> some of us thinks that server side decorations are better for security, because otherwise a client can fake the look of another client. If the decorations are done server-side then all applications will look the same anyway. Having said that, I think decorations probably are the job of the desktop environment since those are the things that a user manipulates at that level of abstraction. Moving, resizing, closing programs is a UI thing and an application really shouldn't know where it is within the desktop environment. That's actually a security concern IMHO.
- renox 8y ago> If the decorations are done server-side then all applications will look the same anyway. Uh? You should read about QubesOS..