X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fkeyboard.c;h=a342d1ef8aa3f9a72712af66a25b08e49aa53230;hb=50d662681160c309ea86268c0d05794b87b75593;hp=5ac423639c35628036133ece70dc9279ac94770a;hpb=3263845459d15da683b7cab92fb856acbdf2800e;p=chaz%2Fopenbox diff --git a/openbox/keyboard.c b/openbox/keyboard.c index 5ac42363..a342d1ef 100644 --- a/openbox/keyboard.c +++ b/openbox/keyboard.c @@ -51,13 +51,13 @@ static void grab_keys(gboolean grab) while (p) { if (p->key) grab_key(p->key, p->state, obt_root(ob_screen), - GrabModeSync); + GrabModeAsync); p = p->next_sibling; } if (curpos) grab_key(config_keyboard_reset_keycode, config_keyboard_reset_state, - obt_root(ob_screen), GrabModeSync); + obt_root(ob_screen), GrabModeAsync); } } @@ -89,7 +89,7 @@ static void set_curpos(KeyBindingTree *newpos) g_free(oldtext); } - a = screen_physical_area_active(); + a = screen_physical_area_primary(FALSE); popup_position(popup, NorthWestGravity, a->x + 10, a->y + 10); /* 1 second delay for the popup to show */ popup_delay_show(popup, G_USEC_PER_SEC, text); @@ -261,8 +261,6 @@ void keyboard_event(ObClient *client, const XEvent *e) } p = p->next_sibling; } - - XAllowEvents(obt_display, AsyncKeyboard, event_curtime); } static void node_rebind(KeyBindingTree *node) @@ -324,4 +322,3 @@ void keyboard_shutdown(gboolean reconfig) popup_free(popup); popup = NULL; } -