fn bind_window_button(_wm: &WindowManager, _w: xlib::Window, _b: u32, _m: u32, _c: u32) {
    unsafe {
        xlib::XGrabButton(
            _wm.display,
            _b,
            _m,
            _w,
            0,
            xlib::ButtonPressMask as u32
                | xlib::ButtonReleaseMask as u32
                | xlib::ButtonMotionMask as u32,
            xlib::GrabModeAsync,
            xlib::GrabModeAsync,
            0,
            xlib::XCreateFontCursor(_wm.display, _c),
        );
    }
}
/**
 * Binds a input button to a window
 */
Binds a input button to a window
Binds a input button to a window
fn bind_window_button(_wm: &WindowManager, _w: xlib::Window, _b: u32, _m: u32, _c: u32) {
    unsafe {
        xlib::XGrabButton(
            _wm.display,
            _b,
            _m,
            _w,
            0,
            xlib::ButtonPressMask as u32
                | xlib::ButtonReleaseMask as u32
                | xlib::ButtonMotionMask as u32,
            xlib::GrabModeAsync,
            xlib::GrabModeAsync,
            0,
            xlib::XCreateFontCursor(_wm.display, _c),
        );
    }
}
fn bind_window_button ( _wm : & WindowManager , _w : xlib :: Window , _b : u32 , _m : u32 , _c : u32 ) { unsafe { xlib :: XGrabButton ( _wm . display , _b , _m , _w , 0 , xlib :: ButtonPressMask as u32 | xlib :: ButtonReleaseMask as u32 | xlib :: ButtonMotionMask as u32 , xlib :: GrabModeAsync , xlib :: GrabModeAsync , 0 , xlib :: XCreateFontCursor ( _wm . display , _c ) , ) ; } }
Binds a input button to a window
Binds a input button to a window
_wm
&WindowManager
_w
xlib::Window
_b
u32
_m
u32
_c
u32
_wm
&WindowManager
_w
xlib::Window
_b
u32
_m
u32
_c
u32