From 1ecba263ea77c2494105007125e7ac4239a734db Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Mon, 5 Aug 2024 10:26:08 +0200 Subject: [PATCH] Xnest: replace XChangePointerControl() by xcb_change_pointer_control Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xnest/Pointer.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/hw/xnest/Pointer.c b/hw/xnest/Pointer.c index 0eced5741..21d7f6b3f 100644 --- a/hw/xnest/Pointer.c +++ b/hw/xnest/Pointer.c @@ -24,6 +24,7 @@ is" without express or implied warranty. #include "mipointer.h" #include "Xnest.h" +#include "xnest-xcb.h" #include "Display.h" #include "Screen.h" @@ -38,8 +39,12 @@ DeviceIntPtr xnestPointerDevice = NULL; void xnestChangePointerControl(DeviceIntPtr pDev, PtrCtrl * ctrl) { - XChangePointerControl(xnestDisplay, TRUE, TRUE, - ctrl->num, ctrl->den, ctrl->threshold); + xcb_change_pointer_control(xnestUpstreamInfo.conn, + ctrl->num, + ctrl->den, + ctrl->threshold, + TRUE, + TRUE); } int