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:
parent
ac519e541a
commit
77e93e35e4
2 changed files with 1 additions and 11 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue