We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d70710 commit 5a4d464Copy full SHA for 5a4d464
main.c
@@ -1226,8 +1226,18 @@ int main(int argc, char **argv) {
1226
wl_registry_add_listener(registry, ®istry_listener, &state);
1227
wl_display_roundtrip(state.display);
1228
1229
- if (!state.compositor || !state.shm) {
1230
- swaylock_log(LOG_ERROR, "Missing wl_compositor or wl_shm");
+ if (!state.compositor) {
+ swaylock_log(LOG_ERROR, "Missing wl_compositor");
1231
+ return 1;
1232
+ }
1233
+
1234
+ if (!state.subcompositor) {
1235
+ swaylock_log(LOG_ERROR, "Missing wl_subcompositor");
1236
1237
1238
1239
+ if (!state.shm) {
1240
+ swaylock_log(LOG_ERROR, "Missing wl_shm");
1241
return 1;
1242
}
1243
0 commit comments