[gtk+/xi2] Handle keyboard in grab/ungrab methods
- From: Kristian Rietveld <kristian src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/xi2] Handle keyboard in grab/ungrab methods
- Date: Mon, 10 May 2010 20:34:36 +0000 (UTC)
commit fc50d7996ec07854ae71e35320a1599e07e2f1c4
Author: Kristian Rietveld <kris gtk org>
Date: Thu Mar 11 11:10:19 2010 +0100
Handle keyboard in grab/ungrab methods
gdk/quartz/gdkdevice-core.c | 17 +++++++++++++++--
1 files changed, 15 insertions(+), 2 deletions(-)
---
diff --git a/gdk/quartz/gdkdevice-core.c b/gdk/quartz/gdkdevice-core.c
index d5d1260..1b10327 100644
--- a/gdk/quartz/gdkdevice-core.c
+++ b/gdk/quartz/gdkdevice-core.c
@@ -303,7 +303,16 @@ gdk_device_core_grab (GdkDevice *device,
if (device->source == GDK_SOURCE_KEYBOARD)
{
- /* Device is a keyboard */
+ _gdk_display_add_device_grab (display,
+ device,
+ window,
+ NULL,
+ GDK_OWNERSHIP_NONE,
+ owner_events,
+ 0,
+ 0,
+ time_,
+ FALSE);
}
else
{
@@ -331,7 +340,11 @@ gdk_device_core_ungrab (GdkDevice *device,
display = gdk_device_get_display (device);
if (device->source == GDK_SOURCE_KEYBOARD)
- { /* FIXME */ }
+ {
+ _gdk_display_end_device_grab (display,
+ device, 0,
+ NULL, FALSE);
+ }
else
{
GdkDeviceGrabInfo *grab;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]