This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fix cast of XRRNotifyEvent

  • Loading branch information...
nlyan committed Oct 5, 2016
1 parent 360d5a7 commit 6892664f4a575a57f5e437aef74187b9b3bd8278
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/lib/platform/XWindowsScreen.cpp
@@ -1426,7 +1426,7 @@ XWindowsScreen::handleSystemEvent(const Event& event, void*)
if (m_xrandr) {
if (xevent->type == m_xrandrEventBase + RRScreenChangeNotify
|| xevent->type == m_xrandrEventBase + RRNotify
- && static_cast<XRRNotifyEvent *>(xevent)->subtype == RRNotify_CrtcChange) {
+ && reinterpret_cast<XRRNotifyEvent *>(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

0 comments on commit 6892664

Please sign in to comment.