diff options
author | emersion <contact@emersion.fr> | 2019-03-10 12:18:22 +0100 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-04-11 09:19:57 -0600 |
commit | ab3446091ba07387b1df9d6e717c06bd4179f96d (patch) | |
tree | c8714e7b9b7fed796236daa336cda40e57b2b5d8 /rootston | |
parent | fc0ba3ea22206fa55254ca00defcddebf5327ba1 (diff) |
output-management-v1: update protocol, add set_custom_mode
Diffstat (limited to 'rootston')
-rw-r--r-- | rootston/output.c | 5 |
1 files changed, 5 insertions, 0 deletions
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); |