mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-09 23:22:22 +00:00
Merge remote-tracking branch 'whot/for-keith'
This commit is contained in:
commit
bfa2a1857a
11 changed files with 27 additions and 37 deletions
|
|
@ -1016,7 +1016,7 @@ DGAProcessKeyboardEvent (ScreenPtr pScreen, DGAEvent *event, DeviceIntPtr keybd)
|
|||
{
|
||||
KeyClassPtr keyc = keybd->key;
|
||||
DGAScreenPtr pScreenPriv = DGA_GET_SCREEN_PRIV(pScreen);
|
||||
DeviceIntPtr pointer = GetPairedDevice(keybd);
|
||||
DeviceIntPtr pointer = GetMaster(keybd, POINTER_OR_FLOAT);
|
||||
DeviceEvent ev;
|
||||
|
||||
memset(&ev, 0, sizeof(ev));
|
||||
|
|
|
|||
|
|
@ -827,6 +827,8 @@ InitInput(int argc, char **argv)
|
|||
|
||||
/* Initialize all configured input devices */
|
||||
for (pInfo = xf86ConfigLayout.inputs; pInfo && *pInfo; pInfo++) {
|
||||
(*pInfo)->options = xf86AddNewOption((*pInfo)->options, "driver", (*pInfo)->driver);
|
||||
(*pInfo)->options = xf86AddNewOption((*pInfo)->options, "identifier", (*pInfo)->name);
|
||||
/* If one fails, the others will too */
|
||||
if (NewInputDeviceRequest((*pInfo)->options, NULL, &dev) == BadAlloc)
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -1275,7 +1275,7 @@ xf86PostKeyEventM(DeviceIntPtr device,
|
|||
DeviceIntPtr pointer;
|
||||
|
||||
/* Some pointers send key events, paired device is wrong then. */
|
||||
pointer = IsPointerDevice(device) ? device : GetPairedDevice(device);
|
||||
pointer = GetMaster(device, POINTER_OR_FLOAT);
|
||||
if (miPointerGetScreen(pointer)) {
|
||||
int index = miPointerGetScreen(pointer)->myNum;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue