mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-03 09:01:40 -05:00
output-management-v1: update protocol, add set_custom_mode
This commit is contained in:
parent
fc0ba3ea22
commit
ab3446091b
3 changed files with 108 additions and 35 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue