mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 08:04:30 +00:00
dix: drop superfluous XineramaGetCursorScreen()
It's only used for record extension, no external callers, thus doesn't need to be exported. Since it's just for retrieving one struct value, it's not needed at all - we can do this directly (just like we do in many other places) Note: the check on noPanoramixExtensions is superfluous, since the only call site already does it. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1345>
This commit is contained in:
committed by
Marge Bot
parent
eb81769b58
commit
6c7c4fdc7e
@@ -36,6 +36,7 @@ and Jim Haggerty of Metheus.
|
||||
#include <dix-config.h>
|
||||
#endif
|
||||
|
||||
#include "dix/cursor_priv.h"
|
||||
#include "dix/eventconvert.h"
|
||||
|
||||
#include "dixstruct.h"
|
||||
@@ -722,7 +723,7 @@ RecordSendProtocolEvents(RecordClientsAndProtocolPtr pRCAP,
|
||||
pev->u.u.type == ButtonPress ||
|
||||
pev->u.u.type == ButtonRelease ||
|
||||
pev->u.u.type == KeyPress || pev->u.u.type == KeyRelease)) {
|
||||
int scr = XineramaGetCursorScreen(inputInfo.pointer);
|
||||
int scr = inputInfo.pointer->spriteInfo->sprite->screen->myNum;
|
||||
|
||||
memcpy(&shiftedEvent, pev, sizeof(xEvent));
|
||||
shiftedEvent.u.keyButtonPointer.rootX +=
|
||||
|
||||
Reference in New Issue
Block a user