mirror of
https://github.com/X11Libre/xserver.git
synced 2026-11-27 07:23:40 +00:00
Xext: saver: clean up setEventMask()
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
Some checks are pending
Build X servers / xserver-build-ubuntu (push) Waiting to run
Build X servers / drivers-build-ubuntu (push) Waiting to run
Build X servers / xserver-build-mingw32-ubuntu (push) Waiting to run
Build X servers / xserver-build-macos (push) Waiting to run
Build X servers / xserver-build-freebsd (push) Waiting to run
Build X servers / xserver-build-dragonflybsd (push) Waiting to run
Build X servers / xserver-build-netbsd (push) Waiting to run
Build X servers / xserver-build-cygwin (push) Waiting to run
Build X servers / Check Signed-Off-By (push) Waiting to run
Build X servers / Release pushed tag (push) Blocked by required conditions
check PRs for merge conflicts / notify (push) Waiting to run
* drop unnecessary forward declaration * declare variables where needed Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
834c9027ba
commit
f6b58206fd
1 changed files with 2 additions and 6 deletions
|
|
@ -120,10 +120,6 @@ typedef struct _ScreenSaverEvent {
|
|||
|
||||
static int ScreenSaverFreeEvents(void * value, XID id);
|
||||
|
||||
static Bool setEventMask(ScreenPtr pScreen,
|
||||
ClientPtr client,
|
||||
unsigned long mask);
|
||||
|
||||
/*
|
||||
* when a client sets the screen saver attributes, a resource is
|
||||
* kept to be freed when the client exits
|
||||
|
|
@ -240,7 +236,6 @@ static Bool
|
|||
setEventMask(ScreenPtr pScreen, ClientPtr client, unsigned long mask)
|
||||
{
|
||||
SetupScreen(pScreen);
|
||||
ScreenSaverEventPtr pEv, *pPrev;
|
||||
|
||||
if (getEventMask(pScreen, client) == mask) {
|
||||
return TRUE;
|
||||
|
|
@ -251,8 +246,9 @@ setEventMask(ScreenPtr pScreen, ClientPtr client, unsigned long mask)
|
|||
if (!pPriv) {
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ScreenSaverEventPtr pEv, *pPrev;
|
||||
for (pPrev = &pPriv->events; (pEv = *pPrev) != 0; pPrev = &pEv->next) {
|
||||
if (pEv->client == client) {
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue