fn bind_window_key(_wm: &WindowManager, _w: xlib::Window, _k: u32, _m: u32) {
    unsafe {
        xlib::XGrabKey(
            _wm.display,
            xlib::XKeysymToKeycode(_wm.display, _k as u64) as i32,
            _m,
            _w,
            0,
            xlib::GrabModeAsync,
            xlib::GrabModeAsync,
        );
    }
}
/**
 * Binds a input key to a window
 */
Binds a input key to a window
Binds a input key to a window
fn bind_window_key(_wm: &WindowManager, _w: xlib::Window, _k: u32, _m: u32) {
    unsafe {
        xlib::XGrabKey(
            _wm.display,
            xlib::XKeysymToKeycode(_wm.display, _k as u64) as i32,
            _m,
            _w,
            0,
            xlib::GrabModeAsync,
            xlib::GrabModeAsync,
        );
    }
}
fn bind_window_key ( _wm : & WindowManager , _w : xlib :: Window , _k : u32 , _m : u32 ) { unsafe { xlib :: XGrabKey ( _wm . display , xlib :: XKeysymToKeycode ( _wm . display , _k as u64 ) as i32 , _m , _w , 0 , xlib :: GrabModeAsync , xlib :: GrabModeAsync , ) ; } }
Binds a input key to a window
Binds a input key to a window
_wm
&WindowManager
_w
xlib::Window
_k
u32
_m
u32
_wm
&WindowManager
_w
xlib::Window
_k
u32
_m
u32