summaryrefslogtreecommitdiff
path: root/hw/xnest/Init.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@nwnk.net>2005-06-25 21:28:48 +0000
committerAdam Jackson <ajax@nwnk.net>2005-06-25 21:28:48 +0000
commitaa7fb99bc76e62036c73ff50f58337558859b814 (patch)
treeb2e26112b997cca8c4a91f9af2811840fcffcb70 /hw/xnest/Init.c
parent8562f800b879ae461317da9640961f753e107250 (diff)
Bug #3030: Fix Xnest keyboard state handling. (Mark McLoughlin)
Diffstat (limited to 'hw/xnest/Init.c')
-rw-r--r--hw/xnest/Init.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/hw/xnest/Init.c b/hw/xnest/Init.c
index 3fac15e63..ba209b732 100644
--- a/hw/xnest/Init.c
+++ b/hw/xnest/Init.c
@@ -87,15 +87,13 @@ InitOutput(ScreenInfo *screenInfo, int argc, char *argv[])
void
InitInput(int argc, char *argv[])
{
- pointer ptr, kbd;
+ xnestPointerDevice = AddInputDevice(xnestPointerProc, TRUE);
+ xnestKeyboardDevice = AddInputDevice(xnestKeyboardProc, TRUE);
- ptr = AddInputDevice(xnestPointerProc, TRUE);
- kbd = AddInputDevice(xnestKeyboardProc, TRUE);
+ RegisterPointerDevice(xnestPointerDevice);
+ RegisterKeyboardDevice(xnestKeyboardDevice);
- RegisterPointerDevice(ptr);
- RegisterKeyboardDevice(kbd);
-
- mieqInit(kbd, ptr);
+ mieqInit((DevicePtr)xnestKeyboardDevice, (DevicePtr)xnestPointerDevice);
AddEnabledDevice(XConnectionNumber(xnestDisplay));