diff --git a/src/x11/visual_info.rs b/src/x11/visual_info.rs index 99a250b..602b2f0 100644 --- a/src/x11/visual_info.rs +++ b/src/x11/visual_info.rs @@ -66,8 +66,8 @@ impl WindowVisualConfig { pub fn create_color_map( connection: &XcbConnection, visual_id: Visualid, ) -> Result> { - let colormap = connection.conn2.generate_id()?; - connection.conn2.create_colormap( + let colormap = connection.conn.generate_id()?; + connection.conn.create_colormap( ColormapAlloc::NONE, colormap, connection.screen().root, diff --git a/src/x11/xcb_connection.rs b/src/x11/xcb_connection.rs index 0f51bb8..b7ca188 100644 --- a/src/x11/xcb_connection.rs +++ b/src/x11/xcb_connection.rs @@ -116,6 +116,6 @@ impl XcbConnection { } pub fn screen(&self) -> &Screen { - &self.conn2.setup().roots[self.screen] + &self.conn.setup().roots[self.screen] } }