draw the keychain popup only when necessary
This commit is contained in:
parent
6fb3e62a31
commit
e8dbe09cdd
1 changed files with 5 additions and 5 deletions
|
@ -78,11 +78,11 @@ static gboolean chain_timeout(gpointer data)
|
||||||
|
|
||||||
static void set_curpos(KeyBindingTree *newpos)
|
static void set_curpos(KeyBindingTree *newpos)
|
||||||
{
|
{
|
||||||
if (curpos != newpos) {
|
if (curpos == newpos) return;
|
||||||
grab_keys(FALSE);
|
|
||||||
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;
|
||||||
|
|
Loading…
Reference in a new issue