From 7a50b1dc3da3d38b9b088d07165ffcd5f3b6e7cf Mon Sep 17 00:00:00 2001 From: stefan11111 Date: Thu, 1 Jan 2026 20:23:08 +0200 Subject: [PATCH] kdrive/src: revert https://github.com/stefan11111/xserver/commit/fd2483745ba50acb2ae60d0a13b5e2a882db514e Signed-off-by: stefan11111 --- hw/kdrive/src/kinput.c | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/hw/kdrive/src/kinput.c b/hw/kdrive/src/kinput.c index 30fd28bb7..65cf755a2 100644 --- a/hw/kdrive/src/kinput.c +++ b/hw/kdrive/src/kinput.c @@ -282,11 +282,7 @@ KdDisableInput(void) KdPointerInfo *pi; int found = 0, i = 0; -#ifndef KDRIVE_KBD input_lock(); -#else - KdBlockSigio(); -#endif for (ki = kdKeyboards; ki; ki = ki->next) { if (ki->driver && ki->driver->Disable) @@ -369,11 +365,7 @@ KdEnableInput(void) NoticeEventTime (&ev, pi->dixdev); } -#ifndef KDRIVE_KBD input_unlock(); -#else - KdUnblockSigio(); -#endif } static KdKeyboardDriver * @@ -1393,12 +1385,8 @@ KdInitInput(void) KdKeyboardInfo *ki; struct KdConfigDevice *dev; -#ifndef KDRIVE_KBD if (kdConfigPointers || kdConfigKeyboards) InputThreadPreInit(); -#else - InputThreadEnable = FALSE; -#endif kdInputEnabled = TRUE; @@ -2093,17 +2081,9 @@ KdWakeupHandler(ScreenPtr pScreen, int result) if (pi->timeoutPending) { if ((long) (GetTimeInMillis() - pi->emulationTimeout) >= 0) { pi->timeoutPending = FALSE; -#ifndef KDRIVE_KBD input_lock(); -#else - KdBlockSigio(); -#endif KdReceiveTimeout(pi); -#ifndef KDRIVE_KBD input_unlock(); -#else - KdUnblockSigio(); -#endif } } } @@ -2199,18 +2179,9 @@ int KdCurScreen; /* current event screen */ static void KdWarpCursor(DeviceIntPtr pDev, ScreenPtr pScreen, int x, int y) { -#ifndef KDRIVE_KBD input_lock(); -#else - KdBlockSigio(); -#endif - KdCurScreen = pScreen->myNum; miPointerWarpCursor(pDev, pScreen, x, y); -#ifndef KDRIVE_KBD input_unlock(); -#else - KdUnblockSigio(); -#endif } miPointerScreenFuncRec kdPointerScreenFuncs = {