dont ungrab/regrab when the position in the chain didnt move

This commit is contained in:
Dana Jansens 2007-05-08 23:42:20 +00:00
parent 0064695d59
commit 636a676c56

View file

@ -78,9 +78,11 @@ static gboolean chain_timeout(gpointer data)
static void set_curpos(KeyBindingTree *newpos) static void set_curpos(KeyBindingTree *newpos)
{ {
grab_keys(FALSE); if (curpose != newpos) {
curpos = newpos; grab_keys(FALSE);
grab_keys(TRUE); curpos = newpos;
grab_keys(TRUE);
}
if (curpos != NULL) { if (curpos != NULL) {
gchar *text = NULL; gchar *text = NULL;