diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-11-07 14:39:10 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-11-07 14:39:10 +0000 |
| commit | 15a5a0e62e1d1f04a74f4b3e38ffe3130ca0adec (patch) | |
| tree | b012f4382a49472f3dfe456aaeebff5899cc4ce0 /wayland.c | |
| parent | Merge branch 'xdga-launch' (diff) | |
| parent | wayland: error out if there aren’t any seats available (diff) | |
Merge branch 'error-out-on-too-old-wl-seat-interface'
Closes #779
Diffstat (limited to 'wayland.c')
| -rw-r--r-- | wayland.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1238,6 +1238,10 @@ wayl_init(const struct config *conf, struct fdm *fdm) "(wl_data_device_manager not implemented by server)"); goto out; } + if (tll_length(wayl->seats) == 0) { + LOG_ERR("no seats available (wl_seat interface too old?)"); + goto out; + } if (wayl->primary_selection_device_manager == NULL) LOG_WARN("no primary selection available"); |
