diff options
author | Adam Jackson <ajax@nwnk.net> | 2005-06-25 21:28:48 +0000 |
---|---|---|
committer | Adam Jackson <ajax@nwnk.net> | 2005-06-25 21:28:48 +0000 |
commit | aa7fb99bc76e62036c73ff50f58337558859b814 (patch) | |
tree | b2e26112b997cca8c4a91f9af2811840fcffcb70 /hw/xnest/Init.c | |
parent | 8562f800b879ae461317da9640961f753e107250 (diff) |
Bug #3030: Fix Xnest keyboard state handling. (Mark McLoughlin)
Diffstat (limited to 'hw/xnest/Init.c')
-rw-r--r-- | hw/xnest/Init.c | 12 |
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)); |