commit e6d23e7
Rose Hellsing
·
2026-07-26 18:39:22 +0000 UTC
parent 249f438
exit on display error When the compositor exits, wawa ends up in an infinite loop because it doesn't properly check if wl_display_dispatch encountered an error, making it very heavy on the cpu. Reviewed-on: https://codeberg.org/sewn/wawa/pulls/8
1 files changed,
+1,
-1
M
wawa.c
M
wawa.c
+1,
-1
1@@ -428,7 +428,7 @@ main(int argc, char *argv[])
2 if (!compositor || !layer_shell || !shm)
3 die("bad compositor available");
4
5- while (wl_display_dispatch(display))
6+ while (wl_display_dispatch(display) != -1)
7 ;
8
9 return EXIT_SUCCESS;