wayland: error out if there aren’t any monitors available

This commit is contained in:
Daniel Eklöf 2023-07-17 16:19:21 +02:00
parent b2a29280cb
commit c96863b188
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -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");