Skip to content
Browse files

grab keys before displaying the OSD

  • Loading branch information...
1 parent 438f7c7 commit ef7c6f94e690216b0b621291eb95d2ed61238907 @loki42 committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 easyxmotion.py
View
2 easyxmotion.py
@@ -89,11 +89,11 @@ def main(options):
with open(pid_file, 'w') as fp:
fp.write(str(os.getpid()))
- osds, windows = display_osd(options)
disp = Display()
root = disp.screen().root
root.change_attributes(event_mask = X.KeyPressMask)
root.grab_keyboard(False, X.GrabModeAsync, X.GrabModeAsync, X.CurrentTime)
+ osds, windows = display_osd(options)
event = disp.next_event()
keycode = event.detail

0 comments on commit ef7c6f9

Please sign in to comment.
Something went wrong with that request. Please try again.