fix bad logic in XWindowsScreen.cpp

This commit is contained in:
walker0643 2018-03-03 12:57:13 -05:00
parent 625253a7e8
commit 5b31036cdc
1 changed files with 3 additions and 3 deletions

View File

@ -1405,9 +1405,9 @@ XWindowsScreen::handleSystemEvent(const Event& event, void*)
#if HAVE_X11_EXTENSIONS_XRANDR_H #if HAVE_X11_EXTENSIONS_XRANDR_H
if (m_xrandr) { if (m_xrandr) {
if (xevent->type == m_xrandrEventBase + RRScreenChangeNotify if (xevent->type == m_xrandrEventBase + RRScreenChangeNotify ||
|| xevent->type == m_xrandrEventBase + RRNotify (xevent->type == m_xrandrEventBase + RRNotify &&
&& reinterpret_cast<XRRNotifyEvent *>(xevent)->subtype == RRNotify_CrtcChange) { reinterpret_cast<XRRNotifyEvent *>(xevent)->subtype == RRNotify_CrtcChange)) {
LOG((CLOG_INFO "XRRScreenChangeNotifyEvent or RRNotify_CrtcChange received")); LOG((CLOG_INFO "XRRScreenChangeNotifyEvent or RRNotify_CrtcChange received"));
// we're required to call back into XLib so XLib can update its internal state // we're required to call back into XLib so XLib can update its internal state