@@ -2,7 +2,7 @@ use std::{cell::RefCell, ffi::c_void, fmt::Display, num::NonZeroU32, ops::Div, p
22
33use anyhow:: { Context as _, anyhow} ;
44use blade_graphics as gpu;
5- use lucie_common:: ResultExt as _;
5+ use lucie_common:: { ResultExt as _, trys } ;
66use raw_window_handle as rwh;
77use x11rb:: {
88 connection:: { Connection , RequestConnection } ,
@@ -22,7 +22,7 @@ use super::{X11Display, XINPUT_ALL_DEVICE_GROUPS, XINPUT_ALL_DEVICES};
2222use crate :: {
2323 AnyWindowHandle , Bounds , Decorations , DevicePixels , ForegroundExecutor , GpuSpecs , Modifiers , Pixels , PlatformAtlas , PlatformDisplay , PlatformInput ,
2424 PlatformInputHandler , PlatformWindow , Point , PromptButton , PromptLevel , RequestFrameOptions , ResizeEdge , ScaledPixels , Scene , Size , Tiling ,
25- WindowAppearance , WindowBackgroundAppearance , WindowBounds , WindowControlArea , WindowDecorations , WindowKind , WindowParams , X11ClientStatePtr , maybe ,
25+ WindowAppearance , WindowBackgroundAppearance , WindowBounds , WindowControlArea , WindowDecorations , WindowKind , WindowParams , X11ClientStatePtr ,
2626 platform:: blade:: { BladeContext , BladeRenderer , BladeSurfaceConfig } ,
2727 px, size
2828} ;
@@ -442,7 +442,7 @@ impl X11WindowState {
442442 ) ?;
443443
444444 // Collect errors during setup, so that window can be destroyed on failure.
445- let setup_result = maybe ! ( {
445+ let setup_result = trys ! ( {
446446 let pid = std:: process:: id( ) ;
447447 check_reply(
448448 || "X11 ChangeProperty for _NET_WM_PID failed." ,
@@ -648,7 +648,7 @@ impl Drop for X11Window {
648648 let mut state = self . 0 . state . borrow_mut ( ) ;
649649 state. renderer . destroy ( ) ;
650650
651- let destroy_x_window = maybe ! ( {
651+ let destroy_x_window = trys ! ( {
652652 check_reply( || "X11 DestroyWindow failure." , self . 0 . xcb. destroy_window( self . 0 . x_window) ) ?;
653653 xcb_flush( & self . 0 . xcb) ;
654654
0 commit comments