mirror of https://github.com/AxioDL/boo.git
Fix building with BOO_MSAN
This commit is contained in:
parent
0c83839680
commit
56a6b06210
|
@ -479,8 +479,10 @@ public:
|
||||||
Window evWindow = GetWindowOfEvent(&event, windowEvent);
|
Window evWindow = GetWindowOfEvent(&event, windowEvent);
|
||||||
if (windowEvent) {
|
if (windowEvent) {
|
||||||
if (event.type == ClientMessage && event.xclient.data.l[0] == 'NWID') {
|
if (event.type == ClientMessage && event.xclient.data.l[0] == 'NWID') {
|
||||||
|
#ifndef BOO_MSAN
|
||||||
if (!inhibitor) /* First window created, use to inhibit screensaver */
|
if (!inhibitor) /* First window created, use to inhibit screensaver */
|
||||||
inhibitor.emplace(m_dbus, evWindow);
|
inhibitor.emplace(m_dbus, evWindow);
|
||||||
|
#endif
|
||||||
} else {
|
} else {
|
||||||
auto window = m_windows.find(evWindow);
|
auto window = m_windows.find(evWindow);
|
||||||
if (window != m_windows.end())
|
if (window != m_windows.end())
|
||||||
|
|
Loading…
Reference in New Issue