Fix incorrect renaming of RETQUEST

pull/1/head
Timothy Pearson 11 years ago
parent 7446fdb128
commit 8a4eacb618

@ -183,7 +183,7 @@ mng_retcode read_databuffer (mng_datap pData,
{ /* not enough space left in buffer ? */ { /* not enough space left in buffer ? */
if (pData->iSuspendbufsize - pData->iSuspendbufleft - if (pData->iSuspendbufsize - pData->iSuspendbufleft -
(mng_uint32)(pData->pSuspendbufnext - pData->pSuspendbuf) < (mng_uint32)(pData->pSuspendbufnext - pData->pSuspendbuf) <
MNG_SUSPENDRETQUESTSIZE) MNG_SUSPENDREQUESTSIZE)
{ {
if (pData->iSuspendbufleft) /* then lets shift (if there's anything left) */ if (pData->iSuspendbufleft) /* then lets shift (if there's anything left) */
MNG_COPY (pData->pSuspendbuf, pData->pSuspendbufnext, pData->iSuspendbufleft) MNG_COPY (pData->pSuspendbuf, pData->pSuspendbufnext, pData->iSuspendbufleft)
@ -191,12 +191,12 @@ mng_retcode read_databuffer (mng_datap pData,
pData->pSuspendbufnext = pData->pSuspendbuf; pData->pSuspendbufnext = pData->pSuspendbuf;
} }
/* still not enough room ? */ /* still not enough room ? */
if (pData->iSuspendbufsize - pData->iSuspendbufleft < MNG_SUSPENDRETQUESTSIZE) if (pData->iSuspendbufsize - pData->iSuspendbufleft < MNG_SUSPENDREQUESTSIZE)
MNG_ERROR (pData, MNG_INTERNALERROR) MNG_ERROR (pData, MNG_INTERNALERROR)
/* now read some more data */ /* now read some more data */
pTemp = pData->pSuspendbufnext + pData->iSuspendbufleft; pTemp = pData->pSuspendbufnext + pData->iSuspendbufleft;
if (!pData->fReaddata (((mng_handle)pData), pTemp, MNG_SUSPENDRETQUESTSIZE, &iTemp)) if (!pData->fReaddata (((mng_handle)pData), pTemp, MNG_SUSPENDREQUESTSIZE, &iTemp))
MNG_ERROR (pData, MNG_APPIOERROR); MNG_ERROR (pData, MNG_APPIOERROR);
/* adjust fill-counter */ /* adjust fill-counter */
pData->iSuspendbufleft += iTemp; pData->iSuspendbufleft += iTemp;
@ -217,7 +217,7 @@ mng_retcode read_databuffer (mng_datap pData,
} }
else else
{ /* suspension required ? */ { /* suspension required ? */
if ((iSize > pData->iSuspendbufleft) && (iTemp < MNG_SUSPENDRETQUESTSIZE)) if ((iSize > pData->iSuspendbufleft) && (iTemp < MNG_SUSPENDREQUESTSIZE))
pData->bSuspended = MNG_TRUE; pData->bSuspended = MNG_TRUE;
} }

@ -310,7 +310,7 @@ typedef mng_uint32 mng_uint32arr2[2];
#define MNG_NULL 0 #define MNG_NULL 0
#define MNG_SUSPENDBUFFERSIZE 32768 #define MNG_SUSPENDBUFFERSIZE 32768
#define MNG_SUSPENDRETQUESTSIZE 1024 #define MNG_SUSPENDREQUESTSIZE 1024
/* ************************************************************************** */ /* ************************************************************************** */

@ -2064,8 +2064,8 @@ void tqt_init_internal( int *argcptr, char **argv,
qt_x11_intern_atom( "_SGI_DESKS_MANAGER", &qt_sgi_desks_manager ); qt_x11_intern_atom( "_SGI_DESKS_MANAGER", &qt_sgi_desks_manager );
#ifndef QT_NO_XSYNC #ifndef QT_NO_XSYNC
qt_x11_intern_atom( "_NET_WM_SYNC_RETQUEST_COUNTER", &qt_net_wm_sync_request_counter ); qt_x11_intern_atom( "_NET_WM_SYNC_REQUEST_COUNTER", &qt_net_wm_sync_request_counter );
qt_x11_intern_atom( "_NET_WM_SYNC_RETQUEST", &qt_net_wm_sync_request ); qt_x11_intern_atom( "_NET_WM_SYNC_REQUEST", &qt_net_wm_sync_request );
#endif #endif
qt_xdnd_setup(); qt_xdnd_setup();
@ -5977,7 +5977,7 @@ bool TQETWidget::translateConfigEvent( const XEvent *event )
++compressed_configs; ++compressed_configs;
} }
#ifndef QT_NO_XSYNC #ifndef QT_NO_XSYNC
// _NET_WM_SYNC_RETQUEST compression // _NET_WM_SYNC_REQUEST compression
Window wid = winId(); Window wid = winId();
while ( compressed_configs && while ( compressed_configs &&
XCheckIfEvent( x11Display(), &otherEvent, XCheckIfEvent( x11Display(), &otherEvent,

@ -684,7 +684,7 @@ void TQWidget::create( WId window, bool initializeWindow, bool destroyOldWindow)
protocols[n++] = tqt_wm_take_focus; // support take focus window protocol protocols[n++] = tqt_wm_take_focus; // support take focus window protocol
protocols[n++] = qt_net_wm_ping; // support _NET_WM_PING protocol protocols[n++] = qt_net_wm_ping; // support _NET_WM_PING protocol
#ifndef QT_NO_XSYNC #ifndef QT_NO_XSYNC
protocols[n++] = qt_net_wm_sync_request;// support the _NET_WM_SYNC_RETQUEST protocol protocols[n++] = qt_net_wm_sync_request;// support the _NET_WM_SYNC_REQUEST protocol
#endif #endif
if ( testWFlags( WStyle_ContextHelp ) ) if ( testWFlags( WStyle_ContextHelp ) )
protocols[n++] = qt_net_wm_context_help; protocols[n++] = qt_net_wm_context_help;
@ -2698,7 +2698,7 @@ void TQWidget::incrementSyncCounter()
} }
} }
// handle _NET_WM_SYNC_RETQUEST // handle _NET_WM_SYNC_REQUEST
void TQWidget::handleSyncRequest( void* ev ) void TQWidget::handleSyncRequest( void* ev )
{ {
XEvent* xev = (XEvent*)ev; XEvent* xev = (XEvent*)ev;

Loading…
Cancel
Save