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)
{
grab_keys(FALSE);
curpos = newpos;
grab_keys(TRUE);
if (curpose != newpos) {
grab_keys(FALSE);
curpos = newpos;
grab_keys(TRUE);
}
if (curpos != NULL) {
gchar *text = NULL;