removed XSync
calls since apparently they're not needed
This commit is contained in:
parent
407f661c33
commit
0d89b2915f
11
src/xlib.rs
11
src/xlib.rs
|
@ -95,6 +95,8 @@ impl XLib {
|
||||||
xlib::XSelectInput(self.dpy(), self.root, window_attributes.event_mask);
|
xlib::XSelectInput(self.dpy(), self.root, window_attributes.event_mask);
|
||||||
|
|
||||||
XSetErrorHandler(Some(xlib_error_handler));
|
XSetErrorHandler(Some(xlib_error_handler));
|
||||||
|
|
||||||
|
XSync(self.dpy(), 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
self.grab_global_keybinds(self.root);
|
self.grab_global_keybinds(self.root);
|
||||||
|
@ -243,8 +245,6 @@ impl XLib {
|
||||||
|
|
||||||
// I don't think I have to call this ~
|
// I don't think I have to call this ~
|
||||||
//self.configure_client(client);
|
//self.configure_client(client);
|
||||||
|
|
||||||
xlib::XSync(self.dpy(), 0);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -270,8 +270,6 @@ impl XLib {
|
||||||
(xlib::CWX | xlib::CWY) as u32,
|
(xlib::CWX | xlib::CWY) as u32,
|
||||||
&mut wc,
|
&mut wc,
|
||||||
);
|
);
|
||||||
|
|
||||||
xlib::XSync(self.dpy(), 0);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -297,8 +295,6 @@ impl XLib {
|
||||||
(xlib::CWWidth | xlib::CWHeight) as u32,
|
(xlib::CWWidth | xlib::CWHeight) as u32,
|
||||||
&mut wc,
|
&mut wc,
|
||||||
);
|
);
|
||||||
|
|
||||||
xlib::XSync(self.dpy(), 0);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -324,8 +320,6 @@ impl XLib {
|
||||||
(xlib::CWX | xlib::CWY) as u32,
|
(xlib::CWX | xlib::CWY) as u32,
|
||||||
&mut wc,
|
&mut wc,
|
||||||
);
|
);
|
||||||
|
|
||||||
xlib::XSync(self.dpy(), 0);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -333,7 +327,6 @@ impl XLib {
|
||||||
pub fn raise_client(&self, client: &Client) {
|
pub fn raise_client(&self, client: &Client) {
|
||||||
unsafe {
|
unsafe {
|
||||||
XRaiseWindow(self.dpy(), client.window);
|
XRaiseWindow(self.dpy(), client.window);
|
||||||
XSync(self.dpy(), 0);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue