Files
zed/script
Roman f62baeda64 gpui: Add Wayland support (#7664)
This PR adds Wayland support to gpui using
[wayland-rs](https://github.com/Smithay/wayland-rs). It is based on
[#7598](https://github.com/zed-industries/zed/pull/7598).

It detects Wayland support at runtime by checking the existence of the
`WAYLAND_DISPLAY` environment variable. If it does not exist or is
empty, the X11 backend will be used. To use the X11 backend in a Wayland
session (for development purposes), you just need to unset
WAYLAND_DISPLAY (`WAYLAND_DISPLAY= cargo run ...`).

At the moment it only creates the window and renders the initial content
provided by `BladeRenderer`, so it can run "Hello world" example.


![image](https://github.com/zed-industries/zed/assets/40907255/1655bc64-4d36-4178-9851-bfe42f03f716)

Todo:
- [x] Add basic Wayland support.
- [x] Add window resizing.
- [x] Add window closing.
- [x] Add window updating.
- [ ] Implement input handling, fractional scaling, and support other
Wayland protocols.
- [ ] Implement all unimplemented todo!(linux).
- [ ] Add window decorations or use custom decorations (like on MacOS).
- [ ] Address other missing functionality.

Release Notes:
- N/A

---------

Co-authored-by: gabydd <gabydinnerdavid@gmail.com>
Co-authored-by: Mikayla Maki <mikayla@zed.dev>
2024-02-14 14:50:11 -08:00
..
2024-01-29 11:58:24 -05:00
2023-11-09 11:08:30 -05:00
2024-02-01 11:54:49 -07:00
2023-11-20 11:01:37 -08:00
2024-02-14 11:40:02 -07:00
2024-02-01 11:57:09 -07:00
2023-04-05 08:18:51 -06:00
2024-01-27 16:03:04 -05:00
2022-10-26 16:19:19 -07:00
2024-01-23 16:52:08 +01:00
2024-02-14 14:50:11 -08:00
2022-01-27 08:51:55 +01:00
2023-09-25 21:45:28 -04:00
2024-02-02 19:24:49 -07:00