mirror of
https://github.com/hyprwm/aquamarine.git
synced 2024-11-17 04:56:00 +01:00
drm: reject modeless commits
This commit is contained in:
parent
af219a0a2c
commit
acfea3bd1d
1 changed files with 3 additions and 0 deletions
|
@ -1344,6 +1344,9 @@ bool Aquamarine::CDRMOutput::commitState(bool onlyTest) {
|
|||
|
||||
const auto MODE = STATE.mode ? STATE.mode : STATE.customMode;
|
||||
|
||||
if (!MODE) // modeless commits are invalid
|
||||
return false;
|
||||
|
||||
uint32_t flags = 0;
|
||||
|
||||
if (!onlyTest) {
|
||||
|
|
Loading…
Reference in a new issue