mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 06:35:58 +01:00
backend/multi: add asserts in wlr_multi_backend_add
This commit is contained in:
parent
33eba9080c
commit
25bb92faee
1 changed files with 3 additions and 0 deletions
|
@ -189,6 +189,9 @@ static struct subbackend_state *multi_backend_get_subbackend(struct wlr_multi_ba
|
||||||
|
|
||||||
bool wlr_multi_backend_add(struct wlr_backend *_multi,
|
bool wlr_multi_backend_add(struct wlr_backend *_multi,
|
||||||
struct wlr_backend *backend) {
|
struct wlr_backend *backend) {
|
||||||
|
assert(_multi && backend);
|
||||||
|
assert(_multi != backend);
|
||||||
|
|
||||||
struct wlr_multi_backend *multi = multi_backend_from_backend(_multi);
|
struct wlr_multi_backend *multi = multi_backend_from_backend(_multi);
|
||||||
|
|
||||||
if (multi_backend_get_subbackend(multi, backend)) {
|
if (multi_backend_get_subbackend(multi, backend)) {
|
||||||
|
|
Loading…
Reference in a new issue