1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-11 23:54:18 +00:00

Linux: Set POLLOUT flag for fds to receive XShm completion events

This commit is contained in:
ed 2019-07-03 16:36:48 +01:00
parent ac519e541a
commit 77e93e35e4
2 changed files with 1 additions and 11 deletions

View file

@ -111,7 +111,7 @@ public:
const ScopedLock sl (lock);
fdReadCallbacks.push_back ({ fd, std::move (cb) });
pfds.push_back ({ fd, POLLIN, 0 });
pfds.push_back ({ fd, POLLIN | POLLOUT, 0 });
}
void unregisterFdCallback (int fd)

View file

@ -2265,16 +2265,6 @@ private:
void timerCallback() override
{
#if JUCE_USE_XSHM
if (XPending (display))
{
XEvent e;
ScopedXLock l (display);
while (XCheckTypedWindowEvent (display, peer.windowH, XShmGetEventBase (display), &e))
--shmPaintsPending;
}
if (shmPaintsPending != 0)
return;
#endif