mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-01-01 11:08:21 -05:00
Emit preferred mode
This commit is contained in:
parent
ab3446091b
commit
524f5c8425
1 changed files with 3 additions and 0 deletions
|
|
@ -636,6 +636,9 @@ static void send_mode_state(struct wl_resource *mode_resource,
|
||||||
if (mode->refresh > 0) {
|
if (mode->refresh > 0) {
|
||||||
zwlr_output_mode_v1_send_refresh(mode_resource, mode->refresh);
|
zwlr_output_mode_v1_send_refresh(mode_resource, mode->refresh);
|
||||||
}
|
}
|
||||||
|
if (mode->preferred) {
|
||||||
|
zwlr_output_mode_v1_send_preferred(mode_resource);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void mode_handle_resource_destroy(struct wl_resource *resource) {
|
static void mode_handle_resource_destroy(struct wl_resource *resource) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue