wiki/FAQ: Mention reasons for not integrating Xwayland
Browse files at this commit37c6412e801ffcb1414168b2307c73d24b781111Parent: 19c8fca1 changed file +17 -0
- wiki/FAQ.md +17 -0
wiki/FAQ.mdmodified+17 -0
| @@ -46,3 +46,20 @@ To run X11 apps, you can use [xwayland-satellite](https://github.com/Supreeeme/x | |||
| 46 | Check [the Xwayland wiki page](./Xwayland.md) for instructions. | 46 | Check [the Xwayland wiki page](./Xwayland.md) for instructions. |
| 47 | 47 | ||
| 48 | Keep in mind that you can run many Electron apps such as VSCode natively on Wayland by passing the right flags, e.g. `code --ozone-platform-hint=auto` | 48 | Keep in mind that you can run many Electron apps such as VSCode natively on Wayland by passing the right flags, e.g. `code --ozone-platform-hint=auto` |
| 49 | + | ||
| 50 | +### Why doesn't niri integrate Xwayland like other compositors? | ||
| 51 | + | ||
| 52 | +A combination of factors: | ||
| 53 | + | ||
| 54 | +- Integrating Xwayland is quite a bit of work, as the compositor needs to implement parts of an X11 window manager. | ||
| 55 | +- You need to appease the X11 ideas of windowing, whereas for niri I want to have the best code for Wayland. | ||
| 56 | +- niri doesn't have a good global coordinate system required by X11. | ||
| 57 | +- You tend to get an endless stream of X11 bugs that take further time and effort away from other tasks. | ||
| 58 | +- There aren't actually that many X11-only clients nowadays, and xwayland-satellite takes perfect care of most of those. | ||
| 59 | +- niri isn't a Big Serious Desktop Environment which Must Support All Use Cases (and is Backed By Some Corporation). | ||
| 60 | + | ||
| 61 | +All in all, the situation works out in favor of avoiding Xwayland integration. | ||
| 62 | + | ||
| 63 | +Also, in the next release niri will have seamless built-in xwayland-satellite integration, that will solve the big rough edge of having to set it up manually. | ||
| 64 | + | ||
| 65 | +Besides, I wouldn't be too surprised if, down the road, xwayland-satellite becomes the standard way of integrating Xwayland into new compositors, since it takes on the bulk of the annoying work, and isolates the compositor from misbehaving clients. | ||