From: Michael D. Lowis Date: Thu, 1 Dec 2016 18:54:41 +0000 (-0500) Subject: Missed checkins for pointer warping X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=6bff8730a3d8c98d7f5420b86f87a7eae1c88d86;p=projs%2Ftide.git Missed checkins for pointer warping --- 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); +}