From 5b31036cdc4345ecb35a1c338fc6f2439310bc41 Mon Sep 17 00:00:00 2001 From: walker0643 <> Date: Sat, 3 Mar 2018 12:57:13 -0500 Subject: [PATCH] fix bad logic in XWindowsScreen.cpp --- src/lib/platform/XWindowsScreen.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/platform/XWindowsScreen.cpp b/src/lib/platform/XWindowsScreen.cpp index 3a001ff7..581c9111 100644 --- a/src/lib/platform/XWindowsScreen.cpp +++ b/src/lib/platform/XWindowsScreen.cpp @@ -1405,9 +1405,9 @@ XWindowsScreen::handleSystemEvent(const Event& event, void*) #if HAVE_X11_EXTENSIONS_XRANDR_H if (m_xrandr) { - if (xevent->type == m_xrandrEventBase + RRScreenChangeNotify - || xevent->type == m_xrandrEventBase + RRNotify - && reinterpret_cast(xevent)->subtype == RRNotify_CrtcChange) { + if (xevent->type == m_xrandrEventBase + RRScreenChangeNotify || + (xevent->type == m_xrandrEventBase + RRNotify && + reinterpret_cast(xevent)->subtype == RRNotify_CrtcChange)) { LOG((CLOG_INFO "XRRScreenChangeNotifyEvent or RRNotify_CrtcChange received")); // we're required to call back into XLib so XLib can update its internal state