From 1e04c474ab59a61faf8d033bf2b8c0fbaf1ce1a1 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 17 Aug 2014 15:38:47 +0200 Subject: x11: listen to xrandr events If the Xrandr configuration changes, re-read it. So if you change display modes or screen configuration, it will update the framedrop refresh rate accordingly. This passes the rootwin to XRRSelectInput(), which may or may not be allowed. But it works, and the documentation (which is worse than used toilet paper, great job Xorg) doesn't forbid it, or in fact say anything about what the window parameter is even used for. --- video/out/x11_common.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'video/out/x11_common.h') diff --git a/video/out/x11_common.h b/video/out/x11_common.h index d1ccdd7223..4c11ad1465 100644 --- a/video/out/x11_common.h +++ b/video/out/x11_common.h @@ -50,6 +50,8 @@ struct vo_x11_state { struct xrandr_display displays[MAX_DISPLAYS]; int num_displays; + int xrandr_event; + bool screensaver_enabled; bool dpms_touched; double screensaver_time_last; -- cgit v1.2.3