mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-17 06:46:39 -04:00
wlr_output: Don't allow commits enabling an output with no buffer
This commit is contained in:
parent
9b1bdf7475
commit
3f0a10bad0
1 changed files with 6 additions and 1 deletions
|
|
@ -636,8 +636,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