draw the keychain popup only when necessary

This commit is contained in:
Dana Jansens 2007-05-23 01:42:08 +00:00
parent 6fb3e62a31
commit e8dbe09cdd

View file

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