From 0a3155972b0aef5f3e03dd777a7fa155158f2e41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Fri, 8 May 2015 22:55:21 +0200 Subject: [PATCH] forward resource modes next to crtcs modes will be required for proper refreshrate detection --- xcbutils.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/xcbutils.h b/xcbutils.h index 2b9a6c8f83..f3959d6c08 100644 --- a/xcbutils.h +++ b/xcbutils.h @@ -1125,6 +1125,12 @@ public: } return xcb_randr_get_screen_resources_crtcs(data()); } + inline xcb_randr_mode_info_t *modes() { + if (isNull()) { + return nullptr; + } + return xcb_randr_get_screen_resources_modes(data()); + } }; XCB_WRAPPER_DATA(CrtcGammaData, xcb_randr_get_crtc_gamma, xcb_randr_crtc_t) @@ -1173,6 +1179,12 @@ public: } return xcb_randr_get_screen_resources_current_crtcs(data()); } + inline xcb_randr_mode_info_t *modes() { + if (isNull()) { + return nullptr; + } + return xcb_randr_get_screen_resources_current_modes(data()); + } }; XCB_WRAPPER(SetCrtcConfig, xcb_randr_set_crtc_config, xcb_randr_crtc_t, xcb_timestamp_t, xcb_timestamp_t, int16_t, int16_t, xcb_randr_mode_t, uint16_t, uint32_t, const xcb_randr_output_t*)