]> git.mdlowis.com Git - projs/tide.git/commitdiff
Missed checkins for pointer warping
authorMichael D. Lowis <mike.lowis@gentex.com>
Thu, 1 Dec 2016 18:54:41 +0000 (13:54 -0500)
committerMichael D. Lowis <mike.lowis@gentex.com>
Thu, 1 Dec 2016 18:54:41 +0000 (13:54 -0500)
inc/edit.h
libx/x11.c

index 2eefce0f27d899c8b0ddd5df55d17d18b710286f..c728659ab21272569e17aaa77a4863b0c564d669 100644 (file)
@@ -231,6 +231,7 @@ typedef struct {
     size_t y;
     size_t height;
     size_t width;
+    bool warp_ptr;
     View view;
 } Region;
 
index 51a44d507e5d0c819ee028be3faa28e4aa2f2289..50cba338f5229c4096ca4f484ebd17fe20baf55d 100644 (file)
@@ -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);
+}