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
|
// let screen saver have a go
|
||||||
|
{
|
||||||
|
CLock lock(&m_mutex);
|
||||||
m_screenSaver->processEvent(xevent);
|
m_screenSaver->processEvent(xevent);
|
||||||
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,7 @@ class CXWindowsScreenSaver : public IScreenSaver {
|
||||||
public:
|
public:
|
||||||
// note -- the caller must ensure that Display* passed to c'tor isn't
|
// 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
|
// 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*);
|
CXWindowsScreenSaver(CXWindowsScreen*, Display*);
|
||||||
virtual ~CXWindowsScreenSaver();
|
virtual ~CXWindowsScreenSaver();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue