Skip to content

Commit

Permalink
Post-rebase fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
prokopyl committed Mar 27, 2024
1 parent b5f5af0 commit af25fb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/x11/visual_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ impl WindowVisualConfig {
pub fn create_color_map(
connection: &XcbConnection, visual_id: Visualid,
) -> Result<Colormap, Box<dyn Error>> {
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,
Expand Down
2 changes: 1 addition & 1 deletion src/x11/xcb_connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,6 @@ impl XcbConnection {
}

pub fn screen(&self) -> &Screen {
&self.conn2.setup().roots[self.screen]
&self.conn.setup().roots[self.screen]
}
}

0 comments on commit af25fb8

Please sign in to comment.