5f995c64d4
While debugging, I found that the signal to focus-window-changed was never getting disconnected, making a call to ungrab every time the focus window changed, even if there were no focus grabs anymore. https://bugzilla.gnome.org/show_bug.cgi?id=693975