Avoid some more warnings with Gtk+ 3.0 when (un)grabbing the keyboard
Avoid some more warnings with Gtk+ 3.0 when (un)grabbing the pointer