Fix building with BOO_MSAN

This commit is contained in:
Luke Street 2020-02-25 01:36:32 -05:00
parent 0c83839680
commit 56a6b06210
1 changed files with 2 additions and 0 deletions

View File

@ -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())