remove the the redundant code, fix a bug

This commit is contained in:
Determinant 2017-07-12 00:00:51 -04:00
parent 5e5debc48f
commit aea61a74fb
2 changed files with 30 additions and 0 deletions

View file

@ -42,6 +42,8 @@ pub trait WindowExt {
fn get_xlib_screen_id(&self) -> Option<*mut libc::c_void>;
fn get_xlib_xconnection(&self) -> Option<Arc<XConnection>>;
fn send_xim_spot(&self, x: i16, y: i16);
/// This function returns the underlying `xcb_connection_t` of an xlib `Display`.
///
@ -121,6 +123,12 @@ impl WindowExt for Window {
}
}
fn send_xim_spot(&self, x: i16, y: i16) {
if let LinuxWindow::X(ref w) = self.window {
w.send_xim_spot(x, y);
}
}
#[inline]
fn get_wayland_surface(&self) -> Option<*mut libc::c_void> {
use wayland_client::Proxy;