• Ulrich Sibiller's avatar
    libX11: Extend Event functions to handle IOErrors · 5ee04c24
    Ulrich Sibiller authored
    To allow for suspend/resume NX has changed _XReadEvents() and
    _XIOError(). _XIOError() does not simply exit but returns. And
    _XReadEvents() returns after _XIOError(). But as the original
    _XReadEvents() is supposed to block until at least one event is there
    calling functions are not prepared for situations where no event is
    available. These calling functions have to check that condition.,
    
    Some of the calling functions already had that check but the
    UnlockDisplay() call was missing.
    
    Fixes https://github.com/ArcticaProject/nx-libs/issues/118
    5ee04c24
PeekIfEv.c 2.43 KB