mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
Enable event delivery for multiple heads.
Requires moving the spriteTrace into the DeviceIntRec and adjusting a few functions to take in device argument, most notably XYToWindow(). Cursor rendering on the second screen is busted.
This commit is contained in:
committed by
Peter Hutterer
parent
d61ed6c8a2
commit
82f97e1c0c
@@ -135,10 +135,16 @@ RRPointerMoved (ScreenPtr pScreen, int x, int y)
|
||||
void
|
||||
RRPointerScreenConfigured (ScreenPtr pScreen)
|
||||
{
|
||||
WindowPtr pRoot = GetCurrentRootWindow ();
|
||||
WindowPtr pRoot = GetCurrentRootWindow (inputInfo.pointer);
|
||||
ScreenPtr pCurrentScreen = pRoot ? pRoot->drawable.pScreen : NULL;
|
||||
int x, y;
|
||||
|
||||
/* XXX: GetCurrentRootWindow revices an argument, It is inputInfo.pointer,
|
||||
* but I really think this is wrong... What do we do here? This was made so
|
||||
* that it can compile, but I don't think randr should assume there is just
|
||||
* one pointer. There might be more than one pointer on the screen! So, what
|
||||
* to do? What happens? */
|
||||
|
||||
if (pScreen != pCurrentScreen)
|
||||
return;
|
||||
GetSpritePosition(inputInfo.pointer, &x, &y);
|
||||
|
||||
Reference in New Issue
Block a user