mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 18:11:05 -05:00
window: Use meta_device_pointer_warp()
This commit is contained in:
parent
33d4732bde
commit
4b88c1c72a
@ -46,6 +46,7 @@
|
|||||||
#include "mutter-enum-types.h"
|
#include "mutter-enum-types.h"
|
||||||
#include "input-events.h"
|
#include "input-events.h"
|
||||||
#include "core.h"
|
#include "core.h"
|
||||||
|
#include "device-pointer.h"
|
||||||
|
|
||||||
#include <X11/Xatom.h>
|
#include <X11/Xatom.h>
|
||||||
#include <X11/Xlibint.h> /* For display->resource_mask */
|
#include <X11/Xlibint.h> /* For display->resource_mask */
|
||||||
@ -9964,11 +9965,8 @@ warp_grab_pointer (MetaWindow *window,
|
|||||||
meta_window_get_client_root_coords (window,
|
meta_window_get_client_root_coords (window,
|
||||||
&grab_info->grab_anchor_window_pos);
|
&grab_info->grab_anchor_window_pos);
|
||||||
|
|
||||||
XWarpPointer (display->xdisplay,
|
meta_device_pointer_warp (META_DEVICE_POINTER (grab_info->grab_pointer),
|
||||||
None,
|
window->screen, *x, *y);
|
||||||
window->screen->xroot,
|
|
||||||
0, 0, 0, 0,
|
|
||||||
*x, *y);
|
|
||||||
|
|
||||||
if (meta_error_trap_pop_with_return (display) != Success)
|
if (meta_error_trap_pop_with_return (display) != Success)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user