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*)