dix: remove trailing/wrong whitespaces from devices.c and events.c
This commit is contained in:
parent
c703849e79
commit
5031238aad
|
@ -2023,7 +2023,7 @@ ProcBell(ClientPtr client)
|
||||||
if (stuff->percent < 0)
|
if (stuff->percent < 0)
|
||||||
newpercent = base + newpercent;
|
newpercent = base + newpercent;
|
||||||
else
|
else
|
||||||
newpercent = base - newpercent + stuff->percent;
|
newpercent = base - newpercent + stuff->percent;
|
||||||
|
|
||||||
for (keybd = inputInfo.devices; keybd; keybd = keybd->next) {
|
for (keybd = inputInfo.devices; keybd; keybd = keybd->next) {
|
||||||
if ((keybd->coreEvents || keybd == inputInfo.keyboard) &&
|
if ((keybd->coreEvents || keybd == inputInfo.keyboard) &&
|
||||||
|
|
60
dix/events.c
60
dix/events.c
|
@ -777,7 +777,7 @@ XineramaChangeToCursor(DeviceIntPtr pDev, CursorPtr cursor)
|
||||||
if ((pSprite->current->bits->xhot != cursor->bits->xhot) ||
|
if ((pSprite->current->bits->xhot != cursor->bits->xhot) ||
|
||||||
(pSprite->current->bits->yhot != cursor->bits->yhot))
|
(pSprite->current->bits->yhot != cursor->bits->yhot))
|
||||||
XineramaCheckPhysLimits(pDev, cursor, FALSE);
|
XineramaCheckPhysLimits(pDev, cursor, FALSE);
|
||||||
(*pSprite->screen->DisplayCursor)(pDev, pSprite->screen, cursor);
|
(*pSprite->screen->DisplayCursor)(pDev, pSprite->screen, cursor);
|
||||||
FreeCursor(pSprite->current, (Cursor)0);
|
FreeCursor(pSprite->current, (Cursor)0);
|
||||||
pSprite->current = cursor;
|
pSprite->current = cursor;
|
||||||
pSprite->current->refcnt++;
|
pSprite->current->refcnt++;
|
||||||
|
@ -1180,9 +1180,9 @@ NoticeEventTime(xEvent *xE)
|
||||||
void
|
void
|
||||||
EnqueueEvent(xEvent *xE, DeviceIntPtr device, int count)
|
EnqueueEvent(xEvent *xE, DeviceIntPtr device, int count)
|
||||||
{
|
{
|
||||||
QdEventPtr tail = *syncEvents.pendtail;
|
QdEventPtr tail = *syncEvents.pendtail;
|
||||||
QdEventPtr qe;
|
QdEventPtr qe;
|
||||||
SpritePtr pSprite = device->spriteInfo->sprite;
|
SpritePtr pSprite = device->spriteInfo->sprite;
|
||||||
int eventlen;
|
int eventlen;
|
||||||
|
|
||||||
|
|
||||||
|
@ -1796,7 +1796,7 @@ AllowSome(ClientPtr client,
|
||||||
return;
|
return;
|
||||||
switch (newState)
|
switch (newState)
|
||||||
{
|
{
|
||||||
case THAWED: /* Async */
|
case THAWED: /* Async */
|
||||||
if (thisGrabbed)
|
if (thisGrabbed)
|
||||||
grabinfo->sync.state = THAWED;
|
grabinfo->sync.state = THAWED;
|
||||||
if (thisSynced)
|
if (thisSynced)
|
||||||
|
@ -1965,21 +1965,21 @@ ReleaseActiveGrabs(ClientPtr client)
|
||||||
* releasing active grabs.
|
* releasing active grabs.
|
||||||
*/
|
*/
|
||||||
do {
|
do {
|
||||||
done = TRUE;
|
done = TRUE;
|
||||||
for (dev = inputInfo.devices; dev; dev = dev->next)
|
for (dev = inputInfo.devices; dev; dev = dev->next)
|
||||||
{
|
{
|
||||||
if (dev->deviceGrab.grab && SameClient(dev->deviceGrab.grab, client))
|
if (dev->deviceGrab.grab && SameClient(dev->deviceGrab.grab, client))
|
||||||
{
|
{
|
||||||
(*dev->deviceGrab.DeactivateGrab)(dev);
|
(*dev->deviceGrab.DeactivateGrab)(dev);
|
||||||
done = FALSE;
|
done = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dev->deviceGrab.grab && SameClient(dev->deviceGrab.grab, client))
|
if (dev->deviceGrab.grab && SameClient(dev->deviceGrab.grab, client))
|
||||||
{
|
{
|
||||||
(*dev->deviceGrab.DeactivateGrab)(dev);
|
(*dev->deviceGrab.DeactivateGrab)(dev);
|
||||||
done = FALSE;
|
done = FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} while (!done);
|
} while (!done);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2382,7 +2382,7 @@ FixUpEventFromWindow(
|
||||||
{
|
{
|
||||||
WindowPtr w= pSprite->spriteTrace[pSprite->spriteTraceGood-1];
|
WindowPtr w= pSprite->spriteTrace[pSprite->spriteTraceGood-1];
|
||||||
/* If the search ends up past the root should the child field be
|
/* If the search ends up past the root should the child field be
|
||||||
set to none or should the value in the argument be passed
|
set to none or should the value in the argument be passed
|
||||||
through. It probably doesn't matter since everyone calls
|
through. It probably doesn't matter since everyone calls
|
||||||
this function with child == None anyway. */
|
this function with child == None anyway. */
|
||||||
|
|
||||||
|
@ -2391,10 +2391,10 @@ FixUpEventFromWindow(
|
||||||
/* If the source window is same as event window, child should be
|
/* If the source window is same as event window, child should be
|
||||||
none. Don't bother going all all the way back to the root. */
|
none. Don't bother going all all the way back to the root. */
|
||||||
|
|
||||||
if (w == pWin)
|
if (w == pWin)
|
||||||
{
|
{
|
||||||
child = None;
|
child = None;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (w->parent == pWin)
|
if (w->parent == pWin)
|
||||||
|
@ -2402,7 +2402,7 @@ FixUpEventFromWindow(
|
||||||
child = w->drawable.id;
|
child = w->drawable.id;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
w = w->parent;
|
w = w->parent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
XE_KBPTR.root = RootWindow(pDev)->drawable.id;
|
XE_KBPTR.root = RootWindow(pDev)->drawable.id;
|
||||||
|
@ -2941,7 +2941,7 @@ InitializeSprite(DeviceIntPtr pDev, WindowPtr pWin)
|
||||||
{
|
{
|
||||||
pSprite->current = wCursor(pWin);
|
pSprite->current = wCursor(pWin);
|
||||||
pSprite->current->refcnt++;
|
pSprite->current->refcnt++;
|
||||||
pSprite->spriteTrace = (WindowPtr *)xcalloc(1, 32*sizeof(WindowPtr));
|
pSprite->spriteTrace = (WindowPtr *)xcalloc(1, 32*sizeof(WindowPtr));
|
||||||
if (!pSprite->spriteTrace)
|
if (!pSprite->spriteTrace)
|
||||||
FatalError("Failed to allocate spriteTrace");
|
FatalError("Failed to allocate spriteTrace");
|
||||||
pSprite->spriteTraceSize = 32;
|
pSprite->spriteTraceSize = 32;
|
||||||
|
@ -3175,7 +3175,7 @@ XineramaWarpPointer(ClientPtr client)
|
||||||
if (stuff->srcWid != None)
|
if (stuff->srcWid != None)
|
||||||
{
|
{
|
||||||
int winX, winY;
|
int winX, winY;
|
||||||
XID winID = stuff->srcWid;
|
XID winID = stuff->srcWid;
|
||||||
WindowPtr source;
|
WindowPtr source;
|
||||||
|
|
||||||
rc = dixLookupWindow(&source, winID, client, DixReadAccess);
|
rc = dixLookupWindow(&source, winID, client, DixReadAccess);
|
||||||
|
@ -3260,7 +3260,7 @@ ProcWarpPointer(ClientPtr client)
|
||||||
if (stuff->srcWid != None)
|
if (stuff->srcWid != None)
|
||||||
{
|
{
|
||||||
int winX, winY;
|
int winX, winY;
|
||||||
XID winID = stuff->srcWid;
|
XID winID = stuff->srcWid;
|
||||||
WindowPtr source;
|
WindowPtr source;
|
||||||
|
|
||||||
rc = dixLookupWindow(&source, winID, client, DixReadAccess);
|
rc = dixLookupWindow(&source, winID, client, DixReadAccess);
|
||||||
|
@ -3497,7 +3497,7 @@ CheckPassiveGrabsOnWindow(
|
||||||
grabinfo->sync.evcount = count;
|
grabinfo->sync.evcount = count;
|
||||||
for (dxE = grabinfo->sync.event; --count >= 0; dxE++, xE++)
|
for (dxE = grabinfo->sync.event; --count >= 0; dxE++, xE++)
|
||||||
*dxE = *xE;
|
*dxE = *xE;
|
||||||
grabinfo->sync.state = FROZEN_WITH_EVENT;
|
grabinfo->sync.state = FROZEN_WITH_EVENT;
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
@ -4677,13 +4677,13 @@ DoFocusEvents(DeviceIntPtr dev, WindowPtr fromWin, WindowPtr toWin, int mode)
|
||||||
if ((toWin == NullWindow) || (toWin == PointerRootWin))
|
if ((toWin == NullWindow) || (toWin == PointerRootWin))
|
||||||
{
|
{
|
||||||
if ((fromWin == NullWindow) || (fromWin == PointerRootWin))
|
if ((fromWin == NullWindow) || (fromWin == PointerRootWin))
|
||||||
{
|
{
|
||||||
if (fromWin == PointerRootWin)
|
if (fromWin == PointerRootWin)
|
||||||
FocusOutEvents(dev, pSprite->win, RootWindow(dev), mode,
|
FocusOutEvents(dev, pSprite->win, RootWindow(dev), mode,
|
||||||
NotifyPointer, TRUE);
|
NotifyPointer, TRUE);
|
||||||
/* Notify all the roots */
|
/* Notify all the roots */
|
||||||
#ifdef PANORAMIX
|
#ifdef PANORAMIX
|
||||||
if ( !noPanoramiXExtension )
|
if ( !noPanoramiXExtension )
|
||||||
FocusEvent(dev, FocusOut, mode, out, WindowTable[0]);
|
FocusEvent(dev, FocusOut, mode, out, WindowTable[0]);
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
|
@ -4720,7 +4720,7 @@ DoFocusEvents(DeviceIntPtr dev, WindowPtr fromWin, WindowPtr toWin, int mode)
|
||||||
FocusOutEvents(dev, pSprite->win, RootWindow(dev), mode,
|
FocusOutEvents(dev, pSprite->win, RootWindow(dev), mode,
|
||||||
NotifyPointer, TRUE);
|
NotifyPointer, TRUE);
|
||||||
#ifdef PANORAMIX
|
#ifdef PANORAMIX
|
||||||
if ( !noPanoramiXExtension )
|
if ( !noPanoramiXExtension )
|
||||||
FocusEvent(dev, FocusOut, mode, out, WindowTable[0]);
|
FocusEvent(dev, FocusOut, mode, out, WindowTable[0]);
|
||||||
else
|
else
|
||||||
#endif
|
#endif
|
||||||
|
@ -4731,7 +4731,7 @@ DoFocusEvents(DeviceIntPtr dev, WindowPtr fromWin, WindowPtr toWin, int mode)
|
||||||
NotifyNonlinearVirtual, TRUE);
|
NotifyNonlinearVirtual, TRUE);
|
||||||
FocusEvent(dev, FocusIn, mode, NotifyNonlinear, toWin);
|
FocusEvent(dev, FocusIn, mode, NotifyNonlinear, toWin);
|
||||||
if (IsParent(toWin, pSprite->win))
|
if (IsParent(toWin, pSprite->win))
|
||||||
(void)FocusInEvents(dev, toWin, pSprite->win, NullWindow, mode,
|
(void)FocusInEvents(dev, toWin, pSprite->win, NullWindow, mode,
|
||||||
NotifyPointer, FALSE);
|
NotifyPointer, FALSE);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -4846,7 +4846,7 @@ SetInputFocus(
|
||||||
rc = dixLookupWindow(&focusWin, focusID, client, DixReadAccess);
|
rc = dixLookupWindow(&focusWin, focusID, client, DixReadAccess);
|
||||||
if (rc != Success)
|
if (rc != Success)
|
||||||
return rc;
|
return rc;
|
||||||
/* It is a match error to try to set the input focus to an
|
/* It is a match error to try to set the input focus to an
|
||||||
unviewable window. */
|
unviewable window. */
|
||||||
if(!focusWin->realized)
|
if(!focusWin->realized)
|
||||||
return(BadMatch);
|
return(BadMatch);
|
||||||
|
@ -5053,7 +5053,7 @@ ProcGrabPointer(ClientPtr client)
|
||||||
|
|
||||||
oldCursor = NullCursor;
|
oldCursor = NullCursor;
|
||||||
if (grab)
|
if (grab)
|
||||||
{
|
{
|
||||||
if (grab->confineTo && !confineTo)
|
if (grab->confineTo && !confineTo)
|
||||||
ConfineCursorToWindow(device, RootWindow(device), FALSE, FALSE);
|
ConfineCursorToWindow(device, RootWindow(device), FALSE, FALSE);
|
||||||
oldCursor = grab->cursor;
|
oldCursor = grab->cursor;
|
||||||
|
@ -5627,7 +5627,7 @@ ProcSendEvent(ClientPtr client)
|
||||||
|
|
||||||
/* If the input focus is PointerRootWin, send the event to where
|
/* If the input focus is PointerRootWin, send the event to where
|
||||||
the pointer is if possible, then perhaps propogate up to root. */
|
the pointer is if possible, then perhaps propogate up to root. */
|
||||||
if (inputFocus == PointerRootWin)
|
if (inputFocus == PointerRootWin)
|
||||||
inputFocus = pSprite->spriteTrace[0]; /* Root window! */
|
inputFocus = pSprite->spriteTrace[0]; /* Root window! */
|
||||||
|
|
||||||
if (IsParent(inputFocus, pSprite->win))
|
if (IsParent(inputFocus, pSprite->win))
|
||||||
|
@ -6077,7 +6077,7 @@ ProcRecolorCursor(ClientPtr client)
|
||||||
CursorPtr pCursor;
|
CursorPtr pCursor;
|
||||||
int nscr;
|
int nscr;
|
||||||
ScreenPtr pscr;
|
ScreenPtr pscr;
|
||||||
Bool displayed;
|
Bool displayed;
|
||||||
SpritePtr pSprite = PickPointer(client)->spriteInfo->sprite;
|
SpritePtr pSprite = PickPointer(client)->spriteInfo->sprite;
|
||||||
REQUEST(xRecolorCursorReq);
|
REQUEST(xRecolorCursorReq);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user