mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-06-14 14:32:57 -04:00
wlr_output: Don't allow commits enabling an output with no buffer
This commit is contained in:
parent
8c42def2e3
commit
cc1c69c9d8
1 changed files with 6 additions and 1 deletions
|
|
@ -674,8 +674,13 @@ static bool output_basic_test(struct wlr_output *output,
|
||||||
wlr_drm_format_finish(&format);
|
wlr_drm_format_finish(&format);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool enabled = output_pending_enabled(output, state);
|
if ((state->committed & WLR_OUTPUT_STATE_ENABLED) && state->enabled &&
|
||||||
|
(state->committed & WLR_OUTPUT_STATE_BUFFER) == 0) {
|
||||||
|
wlr_log(WLR_DEBUG, "Tried to enable an output without a buffer");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool enabled = output_pending_enabled(output, state);
|
||||||
if (enabled && (state->committed & (WLR_OUTPUT_STATE_ENABLED |
|
if (enabled && (state->committed & (WLR_OUTPUT_STATE_ENABLED |
|
||||||
WLR_OUTPUT_STATE_MODE))) {
|
WLR_OUTPUT_STATE_MODE))) {
|
||||||
int pending_width, pending_height;
|
int pending_width, pending_height;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue