mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-26 21:12:25 +00:00
dix: resize EQ to minimum size to avoid reallocs during SIGIO.
When a new device is added, calculate the event size needed if a DCCE event is sent and set the EQ's event size to this minimum. This avoids reallocs when a event is sent (which may happen during a SIGIO).
This commit is contained in:
parent
fea39c94bc
commit
a0e6a7d4f5
3 changed files with 15 additions and 0 deletions
4
mi/mi.h
4
mi/mi.h
|
|
@ -153,6 +153,10 @@ extern Bool mieqInit(
|
|||
void
|
||||
);
|
||||
|
||||
extern void mieqResize(
|
||||
int /* min_size */
|
||||
);
|
||||
|
||||
extern void mieqEnqueue(
|
||||
DeviceIntPtr /*pDev*/,
|
||||
xEventPtr /*e*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue