output-management-v1: update protocol, add set_custom_mode

This commit is contained in:
emersion 2019-03-10 12:18:22 +01:00 committed by Drew DeVault
parent fc0ba3ea22
commit ab3446091b
3 changed files with 108 additions and 35 deletions

View file

@ -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);