Use the XGrabKeyboard hack in for alt-tabbing as well. This stops the

mru getting the order messed up when gvim/xpdf et all steal key events.

While i'm here, change the logic in client_cyclenext() to use break instead
of goto, it's nicer that way.

Thirdly, instead of two different kbfuncs, just use the one and a flag.

"put your cycle diff in so I can pkg_delete gvim" okan@
This commit is contained in:
oga
2008-05-19 15:17:50 +00:00
parent 7957a470fd
commit 43d6e147c2
4 changed files with 13 additions and 10 deletions

View File

@@ -620,10 +620,10 @@ client_cyclenext(int reverse)
if (again)
return (NULL); /* No windows visible. */
goto done;
break;
}
}
done:
/* reset when alt is released. XXX I hate this hack */
sc->altpersist = 1;
client_ptrsave(oldcc);