Browse Source

Fix warnings

master v01
psy 3 years ago
parent
commit
b47198fdc0
  1. 6
      main.c

6
main.c

@ -17,8 +17,8 @@ void moveCursor() {
dpy = XOpenDisplay(0);
Screen *screen = XScreenOfDisplay(dpy, 0);
root_window = XRootWindow(dpy, 0);
int width = XWidthOfScreen(screen);
int height = XHeightOfScreen(screen);
unsigned int width = (unsigned int) XWidthOfScreen(screen);
unsigned int height = (unsigned int) XHeightOfScreen(screen);
int destX = getRandom(0, width);
int destY = getRandom(0, height);
@ -29,7 +29,7 @@ void moveCursor() {
int main() {
while(true) {
sleep(getRandom(0, 10));
sleep(getRandom(60, 600));
if (getRandom(0, 100) > 50) {
continue;
}

Loading…
Cancel
Save