4 ms·
I kinda disagree - I think the compositor's job is to composite framebuffers of multiple apps together, basically blitting and alpha-blending textures. Imagine
by torginus 5y ago
I kinda disagree - I think the compositor's job is to composite framebuffers of multiple apps together, basically blitting and alpha-blending textures.
Imagine if it needed to decorations as well, how much info and dependencies would the pull in - it would need to be aware of the system themes and styles, have some library to draw them, which would be less efficient, since it would need another separate drawing context just for drawing the headers.
- phkahler 5y agoYes and no. On Wayland an app has no access to its context. I.e. location on the screen, or ability to move itself. So dragging by the title bar is the compositor/WMs job. That means the WM has to know where those higher level controls are. It's also not really an applications job to manage its look as in themes. Is it the toolkits job or the compositor/wm?
- account42 5y agoAnd you would rather have that complexity in every application, even those that have no reason to use system styling otherwise like minimalist video players and information displays, games, etc.?
- phkahler 5y ago>> And you would rather have that complexity in every application, even those that have no reason to use system styling otherwise like minimalist video players and information displays, games, etc.? I would rather have system styling be done by the system not in any applications. Doesn't that sound logical? I would also like the system to remember window placement, since it has responsibility for user dragging and applications no longer have access to their position or the ability to change it.
- torginus 5y agoYes - that's what libraries are for. This is a strange argument - replacing the subject matter with something else to demonstrate the absurdity - would you have regex parsing in every application, or would you have regex parsing in a central system process?