[gimp/gtk3-port: 70/130] app: use GdkDeviceManager API
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gtk3-port: 70/130] app: use GdkDeviceManager API
- Date: Fri, 19 Nov 2010 11:24:27 +0000 (UTC)
commit 4e8f05d135fc328bbabbc1dce685e873c40e39ec
Author: Michael Natterer <mitch gimp org>
Date: Tue Oct 19 17:19:52 2010 +0200
app: use GdkDeviceManager API
app/display/gimpdisplayshell-callbacks.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-callbacks.c b/app/display/gimpdisplayshell-callbacks.c
index d0ebe77..7fb1084 100644
--- a/app/display/gimpdisplayshell-callbacks.c
+++ b/app/display/gimpdisplayshell-callbacks.c
@@ -935,12 +935,16 @@ gimp_display_shell_canvas_tool_events (GtkWidget *canvas,
(gimp_tool_control_get_motion_mode (active_tool->control) !=
GIMP_MOTION_MODE_EXACT)))
{
+ GdkDeviceManager *manager;
+
+ manager = gdk_display_get_device_manager (gdk_display);
+
/* don't request motion hins for XInput devices because
* the wacom driver is known to report crappy hints
* (#6901) --mitch
*/
if (gimp_devices_get_current (gimp)->device ==
- gdk_display_get_core_pointer (gdk_display))
+ gdk_device_manager_get_client_pointer (manager))
{
event_mask |= GDK_POINTER_MOTION_HINT_MASK;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]