After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 780133 - gdkseat: Provide way to ungrab single device
gdkseat: Provide way to ungrab single device
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Class: GdkDevice
3.22.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
Carlos Garnacho
Depends on:
Blocks:
 
 
Reported: 2017-03-16 10:06 UTC by Pavel Grunt
Modified: 2018-05-02 18:18 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Pavel Grunt 2017-03-16 10:06:07 UTC
Hi,

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()

to:
gdk_seat_ungrab()
if `keyboard should be grabbed`: // this check may not be trivial
  gdk_seat_grab()
Comment 1 GNOME Infrastructure Team 2018-05-02 18:18:07 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gtk/issues/787.