ZIm/crates/gpui/src
Michael Sloan c9f2c2792c
Improve error handling and resource cleanup in linux/x11/window.rs (#21079)
* Fixes registration of event handler for xinput-2 device changes,
revealed by this improvement.

* Pushes `.unwrap()` panic-ing outwards to callers.

* Includes a description of what the X11 call was doing when a failure
was encountered.

* Fixes a variety of places where the X11 reply wasn't being inspected
for failures.

* Destroys windows on failure during setup. New structure makes it
possible for the caller of `open_window` to carry on despite failures,
and so partially initialized window should be removed (though all calls
I looked at also panic currently).

Considered pushing this through `linux/x11/client.rs` too but figured
it'd be nice to minimize merge conflicts with #20853.

Release Notes:

- N/A
2024-11-22 16:03:46 -07:00
..
app Revert "Use livekit's Rust SDK instead of their swift SDK (#13343)" (#20809) 2024-11-18 11:43:53 +02:00
elements Fix line truncate crash on Windows (#17271) 2024-11-20 16:47:55 -08:00
keymap Add initial FreeBSD support (#20480) 2024-11-11 18:39:05 +01:00
platform Improve error handling and resource cleanup in linux/x11/window.rs (#21079) 2024-11-22 16:03:46 -07:00
text_system Fix line truncate crash on Windows (#17271) 2024-11-20 16:47:55 -08:00
window chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
action.rs Unbind app menu actions (#20268) 2024-11-05 16:18:41 -08:00
app.rs Revert "Use livekit's Rust SDK instead of their swift SDK (#13343)" (#20809) 2024-11-18 11:43:53 +02:00
arena.rs Log if element arena allocation is >80% 2024-01-24 11:03:28 +01:00
asset_cache.rs Add Loading and Fallback States to Image Elements (via StyledImage) (#20371) 2024-11-15 19:12:01 -08:00
assets.rs repl: Set up a way to copy output from the REPL (#16649) 2024-08-22 15:03:42 -07:00
bounds_tree.rs chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
color.rs gpui: Fix SVG color render, when color have alpha (#20537) 2024-11-16 16:53:57 +02:00
element.rs gpui: Remove extra "which" in comment (#16620) 2024-08-21 17:24:38 -04:00
executor.rs Add "Fix with Assistant" code action on lines with diagnostics (#18163) 2024-09-23 11:40:34 -06:00
geometry.rs Revert "Use livekit's Rust SDK instead of their swift SDK (#13343)" (#20809) 2024-11-18 11:43:53 +02:00
global.rs Add support for git branches on remote projects (#19755) 2024-10-27 15:50:54 -07:00
gpui.rs Fix stale Discord invite links (#21074) 2024-11-22 21:10:51 +00:00
input.rs Clip UTF-16 offsets in text for range (#20968) 2024-11-20 22:04:26 -07:00
interactive.rs Fix delay when changing scrolling direction (#13867) 2024-07-05 11:11:43 -04:00
key_dispatch.rs Revert "Use correct context path for focused element in WindowContext::bindings_for_action (#18843)" (#20367) 2024-11-07 09:45:23 -07:00
keymap.rs Revert "Use correct context path for focused element in WindowContext::bindings_for_action (#18843)" (#20367) 2024-11-07 09:45:23 -07:00
platform.rs gpui: Add drop_image (#19772) 2024-11-22 09:51:26 -08:00
prelude.rs Add Loading and Fallback States to Image Elements (via StyledImage) (#20371) 2024-11-15 19:12:01 -08:00
scene.rs Add initial FreeBSD support (#20480) 2024-11-11 18:39:05 +01:00
shared_string.rs Rework file picker for SSH modal (#19020) 2024-10-15 12:38:03 +02:00
shared_uri.rs Rework loading images from files (#7088) 2024-01-30 11:26:02 -05:00
style.rs Add initial FreeBSD support (#20480) 2024-11-11 18:39:05 +01:00
styled.rs gpui: Clean up Styled doc comments (#20731) 2024-11-15 11:27:49 -05:00
subscription.rs Refine inline transformation UX (#12939) 2024-06-13 08:35:22 +02:00
svg_renderer.rs Add Loading and Fallback States to Image Elements (via StyledImage) (#20371) 2024-11-15 19:12:01 -08:00
taffy.rs Revert "chore: Bump taffy to 0.5.2 (#18729)" (#19189) 2024-10-14 15:19:10 +02:00
test.rs Throttle the sending of UpdateFollowers messages (#8918) 2024-03-06 14:58:41 +01:00
text_system.rs Add missing field to impl Hash for RenderGlyphParams (#20316) 2024-11-07 09:34:54 -07:00
util.rs chore: Fix several style lints (#17488) 2024-09-06 11:58:39 +02:00
view.rs Introduce Editor::insert_flaps and Editor::remove_flaps (#12096) 2024-05-21 20:23:37 +02:00
window.rs gpui: Add drop_image (#19772) 2024-11-22 09:51:26 -08:00