mirror of
https://github.com/X11Libre/xserver.git
synced 2026-11-01 03:03:58 +00:00
Alloc sprite memory in devices' devPrivates, allow undisplaying cursors.
Improve memory usage by allocating the sprite's memory only to devices that actually have a sprite and provide means to remove a device's cursor from the screen (more hotplugging, yay!). This commit breaks ScreenRec's ABI.
This commit is contained in:
parent
7cef789fa1
commit
f1f8b562aa
12 changed files with 442 additions and 291 deletions
|
|
@ -247,9 +247,13 @@ ProcessInputEvents ()
|
|||
|
||||
mieqProcessInputEvents();
|
||||
|
||||
/* FIXME: This is a problem if we have multiple pointers */
|
||||
miPointerGetPosition(inputInfo.pointer, &x, &y);
|
||||
xf86SetViewport(xf86Info.currentScreen, x, y);
|
||||
/* PIE can be called after devices have been shut down. Blame DGA. */
|
||||
if (inputInfo.pointer)
|
||||
{
|
||||
/* FIXME: This is a problem if we have multiple pointers */
|
||||
miPointerGetPosition(inputInfo.pointer, &x, &y);
|
||||
xf86SetViewport(xf86Info.currentScreen, x, y);
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Reference in a new issue