Skip to content

Commit

Permalink
Remove stdbool.h
Browse files Browse the repository at this point in the history
  • Loading branch information
ondt committed Feb 4, 2021
1 parent e57ef92 commit 6e17b9e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions xss-events.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <X11/Xlib.h>
#include <X11/extensions/scrnsaver.h>

Expand All @@ -24,7 +23,7 @@ int main(int argc, char *argv[]) {
XScreenSaverSelectInput(display, DefaultRootWindow(display), ScreenSaverNotifyMask | ScreenSaverCycleMask);

int previous_state = -1;
while (true) {
while (1) {
XScreenSaverInfo info;
if (!XScreenSaverQueryInfo(display, DefaultRootWindow(display), &info)) {
fprintf(stderr, "Couldn't query screen saver info!\n");
Expand Down

0 comments on commit 6e17b9e

Please sign in to comment.