Browse Source

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

tags/2021-05-28
ed 6 years ago
parent
commit
77e93e35e4
2 changed files with 1 additions and 11 deletions
  1. +1
    -1
      modules/juce_events/native/juce_linux_Messaging.cpp
  2. +0
    -10
      modules/juce_gui_basics/native/juce_linux_X11_Windowing.cpp

+ 1
- 1
modules/juce_events/native/juce_linux_Messaging.cpp 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)


+ 0
- 10
modules/juce_gui_basics/native/juce_linux_X11_Windowing.cpp 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


Loading…
Cancel
Save