Pull app / OS info out of GPUI, add Linux information, make fallible window initialization (#12869)
TODO: - [x] Finish GPUI changes on other operating systems This is a largely internal change to how we report data to our diagnostics and telemetry. This PR also includes an update to our blade backend which allows us to report errors in a more useful way when failing to initialize blade. Release Notes: - N/A --------- Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
parent
ec9e700e70
commit
80c14c9198
50 changed files with 571 additions and 550 deletions
|
@ -605,7 +605,7 @@ impl Window {
|
|||
handle: AnyWindowHandle,
|
||||
options: WindowOptions,
|
||||
cx: &mut AppContext,
|
||||
) -> Self {
|
||||
) -> Result<Self> {
|
||||
let WindowOptions {
|
||||
window_bounds,
|
||||
titlebar,
|
||||
|
@ -633,7 +633,7 @@ impl Window {
|
|||
display_id,
|
||||
window_background,
|
||||
},
|
||||
);
|
||||
)?;
|
||||
let display_id = platform_window.display().map(|display| display.id());
|
||||
let sprite_atlas = platform_window.sprite_atlas();
|
||||
let mouse_position = platform_window.mouse_position();
|
||||
|
@ -761,7 +761,7 @@ impl Window {
|
|||
platform_window.set_app_id(&app_id);
|
||||
}
|
||||
|
||||
Window {
|
||||
Ok(Window {
|
||||
handle,
|
||||
removed: false,
|
||||
platform_window,
|
||||
|
@ -807,7 +807,7 @@ impl Window {
|
|||
focus_enabled: true,
|
||||
pending_input: None,
|
||||
prompt: None,
|
||||
}
|
||||
})
|
||||
}
|
||||
fn new_focus_listener(
|
||||
&mut self,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue