From f02db4f3b9d748e1fd06e3ae2985b9cf1547cc7e Mon Sep 17 00:00:00 2001 From: marha Date: Wed, 23 Sep 2009 21:04:04 +0000 Subject: Put global pointers to the mouse and keyboard device back to NULL after they have been closed. --- xorg-server/hw/xwin/InitInput.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'xorg-server/hw/xwin/InitInput.c') diff --git a/xorg-server/hw/xwin/InitInput.c b/xorg-server/hw/xwin/InitInput.c index 1e9bcad7a..d9b6ec84c 100644 --- a/xorg-server/hw/xwin/InitInput.c +++ b/xorg-server/hw/xwin/InitInput.c @@ -67,6 +67,13 @@ extern winDispatchProcPtr winProcQueryTreeOrig; #endif +void InputDevicesClosed(void) +{ + g_pwinPointer=NULL; + g_pwinKeyboard=NULL; +} + + /* Called from dix/devices.c */ /* * All of our keys generate up and down transition notifications, -- cgit v1.2.3