[mutter/wip/multitouchr: 32/73] window: Use meta_device_pointer_warp()
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/multitouchr: 32/73] window: Use meta_device_pointer_warp()
- Date: Sat, 3 Nov 2012 23:52:54 +0000 (UTC)
commit 4b88c1c72a0ef73717f1173ff3306f255d488f44
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Jun 21 18:23:53 2011 +0200
window: Use meta_device_pointer_warp()
src/core/window.c | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/core/window.c b/src/core/window.c
index 6513607..d9814e5 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -46,6 +46,7 @@
#include "mutter-enum-types.h"
#include "input-events.h"
#include "core.h"
+#include "device-pointer.h"
#include <X11/Xatom.h>
#include <X11/Xlibint.h> /* For display->resource_mask */
@@ -9964,11 +9965,8 @@ warp_grab_pointer (MetaWindow *window,
meta_window_get_client_root_coords (window,
&grab_info->grab_anchor_window_pos);
- XWarpPointer (display->xdisplay,
- None,
- window->screen->xroot,
- 0, 0, 0, 0,
- *x, *y);
+ meta_device_pointer_warp (META_DEVICE_POINTER (grab_info->grab_pointer),
+ window->screen, *x, *y);
if (meta_error_trap_pop_with_return (display) != Success)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]