Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

X11: split off Visual Info negotiation into a separate module #177

Merged
merged 3 commits into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Post-rebase fixes
  • Loading branch information
prokopyl committed Mar 27, 2024
commit af25fb82d69a38f02bdf6ad0b6a4321e4eb1156c
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]
}
}
Loading