mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
backend/wayland: don't send request_state when enabling an output
This commit is contained in:
parent
e83b06e732
commit
90b5f0dde5
1 changed files with 6 additions and 0 deletions
|
|
@ -1035,6 +1035,12 @@ static void xdg_surface_handle_configure(void *data,
|
|||
output->has_configure_serial = true;
|
||||
output->configure_serial = serial;
|
||||
|
||||
if (!output->wlr_output.enabled) {
|
||||
// We're waiting for a configure event after an initial commit to enable
|
||||
// the output. Do not notify the compositor about the requested state.
|
||||
return;
|
||||
}
|
||||
|
||||
struct wlr_output_state state;
|
||||
wlr_output_state_init(&state);
|
||||
wlr_output_state_set_custom_mode(&state, req_width, req_height, 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue