mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
remove optional R3 backwards compatibility
Remove the permitOldBugs flag, which enabled backwards compatbility with broken R2/R3 era clients.
This commit is contained in:
committed by
Daniel Stone
parent
f54b71b772
commit
12dbd8a02f
21
dix/events.c
21
dix/events.c
@@ -3214,7 +3214,7 @@ EventSuppressForWindow(register WindowPtr pWin, register ClientPtr client,
|
||||
{
|
||||
register int i, free;
|
||||
|
||||
if ((mask & ~PropagateMask) && !permitOldBugs)
|
||||
if (mask & ~PropagateMask)
|
||||
{
|
||||
client->errorValue = mask;
|
||||
return BadValue;
|
||||
@@ -3765,7 +3765,7 @@ ProcGrabPointer(ClientPtr client)
|
||||
client->errorValue = stuff->ownerEvents;
|
||||
return BadValue;
|
||||
}
|
||||
if ((stuff->eventMask & ~PointerGrabMask) && !permitOldBugs)
|
||||
if (stuff->eventMask & ~PointerGrabMask)
|
||||
{
|
||||
client->errorValue = stuff->eventMask;
|
||||
return BadValue;
|
||||
@@ -3851,7 +3851,7 @@ ProcChangeActivePointerGrab(ClientPtr client)
|
||||
TimeStamp time;
|
||||
|
||||
REQUEST_SIZE_MATCH(xChangeActivePointerGrabReq);
|
||||
if ((stuff->eventMask & ~PointerGrabMask) && !permitOldBugs)
|
||||
if (stuff->eventMask & ~PointerGrabMask)
|
||||
{
|
||||
client->errorValue = stuff->eventMask;
|
||||
return BadValue;
|
||||
@@ -4152,13 +4152,12 @@ ProcSendEvent(ClientPtr client)
|
||||
if (stuff->event.u.u.type == ClientMessage &&
|
||||
stuff->event.u.u.detail != 8 &&
|
||||
stuff->event.u.u.detail != 16 &&
|
||||
stuff->event.u.u.detail != 32 &&
|
||||
!permitOldBugs)
|
||||
stuff->event.u.u.detail != 32)
|
||||
{
|
||||
client->errorValue = stuff->event.u.u.detail;
|
||||
return BadValue;
|
||||
}
|
||||
if ((stuff->eventMask & ~AllEventMasks) && !permitOldBugs)
|
||||
if (stuff->eventMask & ~AllEventMasks)
|
||||
{
|
||||
client->errorValue = stuff->eventMask;
|
||||
return BadValue;
|
||||
@@ -4375,12 +4374,10 @@ ProcGrabButton(ClientPtr client)
|
||||
|
||||
|
||||
grab = CreateGrab(client->index, inputInfo.pointer, pWin,
|
||||
permitOldBugs ? (Mask)(stuff->eventMask |
|
||||
ButtonPressMask | ButtonReleaseMask) :
|
||||
(Mask)stuff->eventMask,
|
||||
(Bool)stuff->ownerEvents, (Bool) stuff->keyboardMode,
|
||||
(Bool)stuff->pointerMode, inputInfo.keyboard, stuff->modifiers,
|
||||
ButtonPress, stuff->button, confineTo, cursor);
|
||||
(Mask)stuff->eventMask, (Bool)stuff->ownerEvents,
|
||||
(Bool) stuff->keyboardMode, (Bool)stuff->pointerMode,
|
||||
inputInfo.keyboard, stuff->modifiers, ButtonPress,
|
||||
stuff->button, confineTo, cursor);
|
||||
if (!grab)
|
||||
return BadAlloc;
|
||||
return AddPassiveGrabToList(grab);
|
||||
|
||||
@@ -148,12 +148,6 @@ ClientPtr requestingClient; /* XXX this should be obsolete now, remove? */
|
||||
_X_EXPORT TimeStamp currentTime;
|
||||
_X_EXPORT TimeStamp lastDeviceEventTime;
|
||||
|
||||
/*
|
||||
* turn off some error checking, to permit old broken clients (like R2/R3
|
||||
* xterms) to work
|
||||
*/
|
||||
_X_EXPORT Bool permitOldBugs = FALSE;
|
||||
|
||||
_X_EXPORT int defaultColorVisualClass = -1;
|
||||
_X_EXPORT int monitorResolution = 0;
|
||||
|
||||
|
||||
@@ -2093,7 +2093,7 @@ WhereDoIGoInTheStack(
|
||||
else
|
||||
return NullWindow;
|
||||
case TopIf:
|
||||
if ((!pWin->mapped || (pSib && !pSib->mapped)) && !permitOldBugs)
|
||||
if ((!pWin->mapped || (pSib && !pSib->mapped)))
|
||||
return(pWin->nextSib);
|
||||
else if (pSib)
|
||||
{
|
||||
@@ -2108,7 +2108,7 @@ WhereDoIGoInTheStack(
|
||||
else
|
||||
return(pWin->nextSib);
|
||||
case BottomIf:
|
||||
if ((!pWin->mapped || (pSib && !pSib->mapped)) && !permitOldBugs)
|
||||
if ((!pWin->mapped || (pSib && !pSib->mapped)))
|
||||
return(pWin->nextSib);
|
||||
else if (pSib)
|
||||
{
|
||||
@@ -2123,7 +2123,7 @@ WhereDoIGoInTheStack(
|
||||
else
|
||||
return(pWin->nextSib);
|
||||
case Opposite:
|
||||
if ((!pWin->mapped || (pSib && !pSib->mapped)) && !permitOldBugs)
|
||||
if ((!pWin->mapped || (pSib && !pSib->mapped)))
|
||||
return(pWin->nextSib);
|
||||
else if (pSib)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user