Permalink
Browse files
Fix cast of XRRNotifyEvent
- Loading branch information...
Showing
with
1 addition
and
1 deletion.
-
+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