mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-04 07:15:29 -04:00
wayland: error out if there aren’t any monitors available
This commit is contained in:
parent
b2a29280cb
commit
c96863b188
1 changed files with 5 additions and 0 deletions
|
|
@ -1447,6 +1447,11 @@ wayl_init(struct fdm *fdm, struct key_binding_manager *key_binding_manager,
|
||||||
LOG_ERR("no seats available (wl_seat interface too old?)");
|
LOG_ERR("no seats available (wl_seat interface too old?)");
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
if (tll_length(wayl->monitors) == 0) {
|
||||||
|
LOG_ERR("no monitors available");
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
if (wayl->primary_selection_device_manager == NULL)
|
if (wayl->primary_selection_device_manager == NULL)
|
||||||
LOG_WARN("no primary selection available");
|
LOG_WARN("no primary selection available");
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue