diff options
| author | Alexander Orzechowski <orzechowski.alexander@gmail.com> | 2022-09-24 06:50:25 -0400 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2022-11-14 21:07:01 +0100 |
| commit | f6f804013f36e8cb66e1b8da4552b39aa421b8ab (patch) | |
| tree | 6bdd1855d5444753cb4e8e05a624ae8930f4ffdc | |
| parent | 5c1b16b957bfc45010dd22a03aa8f5135d3bac0c (diff) | |
Check for existence of subcompositor
We need this protocol
| -rw-r--r-- | main.c | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -1226,8 +1226,18 @@ int main(int argc, char **argv) { wl_registry_add_listener(registry, ®istry_listener, &state); wl_display_roundtrip(state.display); - if (!state.compositor || !state.shm) { - swaylock_log(LOG_ERROR, "Missing wl_compositor or wl_shm"); + if (!state.compositor) { + swaylock_log(LOG_ERROR, "Missing wl_compositor"); + return 1; + } + + if (!state.subcompositor) { + swaylock_log(LOG_ERROR, "Missing wl_subcompositor"); + return 1; + } + + if (!state.shm) { + swaylock_log(LOG_ERROR, "Missing wl_shm"); return 1; } |
