OSDN Git Service

gtk: check for existing grabs in gd_grab_{pointer,keyboard}
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 9 Sep 2015 07:57:01 +0000 (09:57 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 15 Sep 2015 10:27:39 +0000 (12:27 +0200)
commitaa4f4058ba8cde200e62ef3dafc4e1595f6033e9
tree86e3faeefcce9dc9edc5562ebfc45c2783966688
parent007e620a7576e4ce2ea6955541e87d8ae8ed32ae
gtk: check for existing grabs in gd_grab_{pointer,keyboard}

If a grab is already active for our window, do nothing.
If a grab is already active for another window, release it.

Cleanup some checks and ungrab calls in the code which are
not needed any more.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
ui/gtk.c