Skip to content

Commit

Permalink
Activate the XFixes extension
Browse files Browse the repository at this point in the history
Necessary to resolve the events from XFixes
  • Loading branch information
rtbo authored and quininer committed Apr 18, 2022
1 parent 7d4e9b5 commit 3c498c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use std::time::{ Duration, Instant };
use std::sync::{ Arc, RwLock };
use std::sync::mpsc::{ Sender, channel };
use std::collections::HashMap;
use xcb::{ ConnError, Connection, Xid };
use xcb::{ ConnError, Connection, Extension, Xid };
use xcb::{ x, xfixes };
use error::Error;

Expand Down Expand Up @@ -88,7 +88,7 @@ fn get_atom(connection: &Connection, name: &str) -> Result<x::Atom, Error> {

impl Context {
pub fn new(displayname: Option<&str>) -> Result<Self, Error> {
let (connection, screen) = Connection::connect_with_extensions(displayname, &[], &[])?;
let (connection, screen) = Connection::connect_with_extensions(displayname, &[Extension::XFixes], &[])?;
let window = connection.generate_id();

{
Expand Down

0 comments on commit 3c498c9

Please sign in to comment.