ZIm/crates/gpui/src/platform/linux
Dzmitry Malyshau 26103e8bb9
Clean up and refactor X11 refresh loop (alternative) (#8655)
Associates every window with its own refresh event. Removes the use of
X11 present.
Alternative to #8592.
Instead of doing the rendering on idle and then involving a hack for
polling X11 events, this PR just tries to do the rendering inside the
main loop. This guarantees that we continue to poll for events after the
draw, and not get screwed by the driver talking to X11 via the same file
descriptor.

Release Notes:
- N/A
2024-03-01 16:43:24 -08:00
..
wayland Remove ! from todo!() in comments (#8643) 2024-02-29 18:19:05 -07:00
x11 Clean up and refactor X11 refresh loop (alternative) (#8655) 2024-03-01 16:43:24 -08:00
client.rs Linux: Rewrite the event loop using calloop (#8314) 2024-02-28 14:59:11 -08:00
dispatcher.rs Remove ! from todo!() in comments (#8643) 2024-02-29 18:19:05 -07:00
platform.rs Clean up and refactor X11 refresh loop (alternative) (#8655) 2024-03-01 16:43:24 -08:00
text_system.rs Remove ! from todo!() in comments (#8643) 2024-02-29 18:19:05 -07:00
util.rs linux: improve key translation (#8560) 2024-02-28 15:13:02 -08:00
wayland.rs Remove ! from todo!() in comments (#8643) 2024-02-29 18:19:05 -07:00
x11.rs Linux: Rewrite the event loop using calloop (#8314) 2024-02-28 14:59:11 -08:00