gdkseat: Provide way to ungrab single device
Submitted by Pavel Grunt
I was trying to move from deprecated gdk_pointer_ungrab() and gdk_keyboard_ungrab() to gdkseat functions. Sometimes I need to grab both keyboard and pointer and ungrab them separately. Hovewer I noticed that there is just gdk_seat_ungrab() ungrabbing everything and there is no (not deprecated) way for ungrabbing only the keyboard or the pointer.
Is it expected to call gdk_seat_ungrab() followed by gdk_seat_grab() ?
In my case the code changed from: gdk_pointer_ungrab()
keyboard should be grabbed: // this check may not be trivial