X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=openbox%2Fkeyboard.c;h=51f2cff9dcb6377205c15d388bb1c9e066a5268a;hb=cea865698391bba733d763686f20d54032a940c8;hp=b834046b9cdc4282a51f19093346c53d1d6852c0;hpb=9fcb2aa1d25ec9889b45d145939fb17160b1106a;p=chaz%2Fopenbox diff --git a/openbox/keyboard.c b/openbox/keyboard.c index b834046b..51f2cff9 100644 --- a/openbox/keyboard.c +++ b/openbox/keyboard.c @@ -78,11 +78,11 @@ static gboolean chain_timeout(gpointer data) static void set_curpos(KeyBindingTree *newpos) { - if (curpos != newpos) { - grab_keys(FALSE); - curpos = newpos; - grab_keys(TRUE); - } + if (curpos == newpos) return; + + grab_keys(FALSE); + curpos = newpos; + grab_keys(TRUE); if (curpos != NULL) { gchar *text = NULL; @@ -330,6 +330,7 @@ void keyboard_startup(gboolean reconfig) { grab_keys(TRUE); popup = popup_new(FALSE); + popup_set_text_align(popup, RR_JUSTIFY_CENTER); if (!reconfig) client_add_destroy_notify(keyboard_interactive_end_client, NULL);