mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-24 19:42:24 +03:00
fixed re-entrant calls to X bug.
This commit is contained in:
parent
1377882a9f
commit
6cc3b50d3b
@ -387,7 +387,10 @@ CXWindowsScreen::processEvent(XEvent* xevent)
|
||||
}
|
||||
|
||||
// let screen saver have a go
|
||||
m_screenSaver->processEvent(xevent);
|
||||
{
|
||||
CLock lock(&m_mutex);
|
||||
m_screenSaver->processEvent(xevent);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ class CXWindowsScreenSaver : public IScreenSaver {
|
||||
public:
|
||||
// note -- the caller must ensure that Display* passed to c'tor isn't
|
||||
// being used in another call to Xlib when calling any method on this
|
||||
// object (including during the c'tor and d'tor) except processEvent().
|
||||
// object (including during the c'tor and d'tor).
|
||||
CXWindowsScreenSaver(CXWindowsScreen*, Display*);
|
||||
virtual ~CXWindowsScreenSaver();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user