From ab3446091ba07387b1df9d6e717c06bd4179f96d Mon Sep 17 00:00:00 2001 From: emersion Date: Sun, 10 Mar 2019 12:18:22 +0100 Subject: output-management-v1: update protocol, add set_custom_mode --- rootston/output.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'rootston/output.c') diff --git a/rootston/output.c b/rootston/output.c index 4afbfa7b..15737733 100644 --- a/rootston/output.c +++ b/rootston/output.c @@ -451,6 +451,11 @@ void handle_output_manager_apply(struct wl_listener *listener, void *data) { } if (config_head->state.mode != NULL) { ok &= wlr_output_set_mode(wlr_output, config_head->state.mode); + } else { + ok &= wlr_output_set_custom_mode(wlr_output, + config_head->state.custom_mode.width, + config_head->state.custom_mode.height, + config_head->state.custom_mode.refresh); } wlr_output_layout_add(desktop->layout, wlr_output, config_head->state.x, config_head->state.y); -- cgit v1.2.3