Correctly set locale on startup and sleep for one second after each redraw to
reduce CPU consumption.
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
#include <errno.h>
#include <inttypes.h>
+#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
iter, ret);
continue;
}
+ sleep(1);
}
return 0;
struct kmscon_compositor *comp;
int ret;
+ setlocale(LC_ALL, "");
+
ret = kmscon_compositor_new(&comp);
if (ret) {
printf("Cannot create compositor: %d\n", ret);