mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-26 01:59:57 +00:00
mipointer: take device arguments, split miPointerAbsoluteCursor
Update mipointer API to take a device argument to (almost) all functions, and split miPointerAbsoluteCursor into a couple of separate functions. Remove miPointerAbsoluteCursor call from mieq, as we now deal with it in GetPointerEvents. Make miPointerSetPosition (successor of miPointerAbsoluteCursor) take pointers to x and y, so it can return the clipped values. Modify callers of miPointer*() functions to generally use the new functions. This should fix things with multi-head setups.
This commit is contained in:
parent
be8dfafd1d
commit
41bb9fce47
8 changed files with 150 additions and 99 deletions
|
|
@ -223,9 +223,9 @@ xf86SwitchMode(ScreenPtr pScreen, DisplayModePtr mode)
|
|||
if (mode->HDisplay > pScr->virtualX || mode->VDisplay > pScr->virtualY)
|
||||
return FALSE;
|
||||
|
||||
pCursorScreen = miPointerCurrentScreen();
|
||||
pCursorScreen = miPointerGetScreen(inputInfo.pointer);
|
||||
if (pScreen == pCursorScreen)
|
||||
miPointerPosition(&px, &py);
|
||||
miPointerGetPosition(inputInfo.pointer, &px, &py);
|
||||
|
||||
xf86EnterServerState(SETUP);
|
||||
Switched = (*pScr->SwitchMode)(pScr->scrnIndex, mode, 0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue