From 6bff8730a3d8c98d7f5420b86f87a7eae1c88d86 Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Thu, 1 Dec 2016 13:54:41 -0500 Subject: [PATCH] Missed checkins for pointer warping --- inc/edit.h | 1 + libx/x11.c | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/inc/edit.h b/inc/edit.h index 2eefce0..c728659 100644 --- a/inc/edit.h +++ b/inc/edit.h @@ -231,6 +231,7 @@ typedef struct { size_t y; size_t height; size_t width; + bool warp_ptr; View view; } Region; diff --git a/libx/x11.c b/libx/x11.c index 51a44d5..50cba33 100644 --- a/libx/x11.c +++ b/libx/x11.c @@ -441,6 +441,6 @@ void x11_draw_utf8(XFont fnt, int fg, int bg, int x, int y, char* str) { x11_draw_glyphs(fg, bg, (XGlyphSpec*)specs, nspecs); } -//void x11_warp_mouse(int x, int y) { -// XWarpPointer(X.display, X.window, X.window, 0, 0, X.width, X.height, x, y); -//} +void x11_warp_mouse(int x, int y) { + XWarpPointer(X.display, X.window, X.window, 0, 0, X.width, X.height, x, y); +} -- 2.49.0