diff --git a/src/lib.rs b/src/lib.rs index 06817eb..ed731bd 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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; @@ -88,7 +88,7 @@ fn get_atom(connection: &Connection, name: &str) -> Result { impl Context { pub fn new(displayname: Option<&str>) -> Result { - let (connection, screen) = Connection::connect_with_extensions(displayname, &[], &[])?; + let (connection, screen) = Connection::connect_with_extensions(displayname, &[Extension::XFixes], &[])?; let window = connection.generate_id(); {