diff options
Diffstat (limited to 'src/buttons.rs')
-rw-r--r-- | src/buttons.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/buttons.rs b/src/buttons.rs index cc8cc74..94242be 100644 --- a/src/buttons.rs +++ b/src/buttons.rs @@ -168,8 +168,8 @@ pub fn grab(conn: &Connection<'_>, window: Window, focused: bool) { grab_window: window, owner_events: false, event_mask: EventMask::BUTTON_PRESS | EventMask::BUTTON_RELEASE, - pointer_mode: GrabMode::Sync, - keyboard_mode: GrabMode::Sync, + pointer_mode: GrabMode::Async, + keyboard_mode: GrabMode::Async, confine_to: Window::none(), cursor: Cursor::none(), }); @@ -189,7 +189,7 @@ pub fn grab(conn: &Connection<'_>, window: Window, focused: bool) { owner_events: false, event_mask: EventMask::BUTTON_PRESS | EventMask::BUTTON_RELEASE, pointer_mode: GrabMode::Async, - keyboard_mode: GrabMode::Sync, + keyboard_mode: GrabMode::Async, confine_to: Window::none(), cursor: Cursor::none(), }); |