@@ -3,7 +3,6 @@ use crate::x11::xcb_connection::XcbConnection;
33use crate :: { MouseCursor , Size , WindowInfo , WindowOpenOptions , WindowScalePolicy } ;
44use raw_window_handle:: XcbWindowHandle ;
55use std:: error:: Error ;
6- use std:: rc:: { Rc , Weak } ;
76use x11rb:: connection:: Connection ;
87use x11rb:: protocol:: xproto:: {
98 AtomEnum , ChangeWindowAttributesAux , ConfigureWindowAux , ConnectionExt , CreateGCAux ,
@@ -20,7 +19,7 @@ pub(crate) struct X11Window {
2019 _graphics_context : Gcontext ,
2120
2221 #[ cfg( feature = "opengl" ) ]
23- gl_context : Option < Rc < crate :: gl:: x11:: GlContext > > ,
22+ gl_context : Option < std :: rc :: Rc < crate :: gl:: x11:: GlContext > > ,
2423}
2524
2625impl X11Window {
@@ -86,7 +85,7 @@ impl X11Window {
8685 gl_context : None ,
8786 } ;
8887
89- created_window. set_title ( connection, & options. title ) ;
88+ created_window. set_title ( connection, & options. title ) ? ;
9089
9190 // Register protocols
9291 connection. conn2 . change_property32 (
@@ -180,6 +179,7 @@ fn create_graphics_context(
180179#[ cfg( feature = "opengl" ) ]
181180const _: ( ) = {
182181 use crate :: gl:: platform:: GlContext ;
182+ use std:: rc:: { Rc , Weak } ;
183183
184184 use std:: ffi:: c_ulong;
185185
0 commit comments