dont ungrab/regrab when the position in the chain didnt move
This commit is contained in:
parent
0064695d59
commit
636a676c56
1 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue