diff options
author | Johannes Bensmann <johannesbensmann@gmx.de> | 2019-07-08 17:09:28 +0000 |
---|---|---|
committer | Johannes Bensmann <johannesbensmann@gmx.de> | 2019-07-08 17:09:28 +0000 |
commit | d0955b64d6c8daac191677ecb61e114c3f20ba9e (patch) | |
tree | a47fafe41e12874586acb5a96da9593110a13d50 | |
parent | 40ee053b501973d40b61d7bdef99a5ef9ad373fa (diff) |
fixed initializer not constant error
-rw-r--r-- | xmouseless.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmouseless.c b/xmouseless.c index 0b3d946..8a52bc3 100644 --- a/xmouseless.c +++ b/xmouseless.c @@ -43,7 +43,7 @@ Display *dpy; Window root; pthread_t movethread; -static unsigned int speed = default_speed; +static unsigned int speed; struct { float x; @@ -193,6 +193,7 @@ int main () { get_pointer(); mouseinfo.speed_x = 0; mouseinfo.speed_y = 0; + speed = default_speed; // start the thread for mouse movement rc = pthread_create(&movethread, NULL, &moveforever, NULL); |