3 ms·
Sorry which modular unix philosophy is Wayland replacing? X wasn't modular except by the most generous definitions. X is a weird server that does way too many t
by kevincox 6y ago
Sorry which modular unix philosophy is Wayland replacing? X wasn't modular except by the most generous definitions. X is a weird server that does way too many things and the window manager where the interesting logic was. These days the building blocks have been broken out allowing much more flexibility.
If you think that the window manager was modular component you can basically pretend that wlroots is X and the compositor is the window manager. It is just as modular with that logic except more efficient and capable.
- Aardwolf 6y agoBeing able to write bash scripts to automate mouse and keyboard is modular Being able to dump screenshots or process them in any other way, also again with bash scripts, is very modular Being able to debug parameters of X windows, etc...
- deleted 6y ago[deleted]
- mondoshawan 6y agoXorg didnt define policy, which is why things like window management was offloaded to the window manager process. Look and feel was also not part of the policy of Xorg, and was defined by the widget sets, window manager, etc. In the wayland model, these previously modular components that communicated through process boundaries to cobble together those policies that make a desktop are typically subsumed into one process called the compositor. Look and feel is still the domain of the widget set, but window policy is not.
- chousuke 6y agoRight, and nothing prevents you from writing a compositor that talks to an external process to handle window management. It just happens that no-one does it, because it's insane and difficult to make work properly. The compositor's job literally is to juggle the clients' buffers, which includes deciding what gets drawn on the screen and how. There are other processes involved though where the compositor and the client do talk the Wayland protocol via IPC, such that the compositor hands off various responsibilities to external processes. As far as I understand, X11 ended up with the window manager architecture pretty much by accident; initially, window managers didn't even exist.