Using xu_btn_ungrab() buttons during client_leave doesn't work (error

BadValue) when the modifier is already AnyModifier .  Instead alter
xu_btn_ungrab() to ungrab AnyButton/AnyModifier and call it only when a
client is coming into focus in client_setactive(), instead of iterating
over ignore mods - matches how we handle key grabs.
This commit is contained in:
okan
2013-10-19 19:39:34 +00:00
parent 083a023f2c
commit a2013ee9dd
4 changed files with 5 additions and 11 deletions

2
conf.c
View File

@@ -649,6 +649,8 @@ conf_grab_mouse(Window win)
{
struct mousebinding *mb;
xu_btn_ungrab(win);
TAILQ_FOREACH(mb, &Conf.mousebindingq, entry) {
if (mb->flags != MOUSEBIND_CTX_WIN)
continue;