Score:-3

Why do we need Wayland (or X)?

in flag

I'm not sure why we need Wayland (or X) at all. Since under wayland applications will be drawing themselves then what is the point of wayland? Applications can draw their own windows and widgets, can't they?

What is it that we can't do without Wayland (or X)?

Nmath avatar
ng flag
Does this answer your question? [What is the difference between a desktop environment and a window manager?](https://askubuntu.com/questions/18078/what-is-the-difference-between-a-desktop-environment-and-a-window-manager) or https://askubuntu.com/questions/11537/why-is-wayland-better
Score:2
vn flag

Yes, applications draw their own widgets and windows, but no more than that. In particular they are not aware of what other applications are drawing on the screen. Each application tells the window manager what pixels it wants to draw on the screen, and then the window manager is responsible for combining those to produce a multi-application display to the user without requiring any direct communication between applications. See https://en.wikipedia.org/wiki/Compositing_window_manager

The other function of the Wayland or X is to direct user input (keyboard and mouse movement/clicks) to the correct application. Without the window manager each application would have to receive all keypresses, mouse movements and clicks and then determine whether that input was directed to itself or to another application. While this could be handled in UI toolkits, it is clearly more efficient (and more secure) to make the calculation once in a lower-level component.

At a lower level X and Wayland provide an abstracted API for programs to work against rather than the low-level of individual Graphics card APIs. As a bonus the client-server architecture allows us to run graphical applications over SSH.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.