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);
if (windowEvent) {
if (event.type == ClientMessage && event.xclient.data.l[0] == 'NWID') {
#ifndef BOO_MSAN
if (!inhibitor) /* First window created, use to inhibit screensaver */
inhibitor.emplace(m_dbus, evWindow);
#endif
} else {
auto window = m_windows.find(evWindow);
if (window != m_windows.end())