mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-13 04:27:47 -05: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?)");
|
||||
goto out;
|
||||
}
|
||||
if (tll_length(wayl->monitors) == 0) {
|
||||
LOG_ERR("no monitors available");
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (wayl->primary_selection_device_manager == NULL)
|
||||
LOG_WARN("no primary selection available");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue