summaryrefslogtreecommitdiff
path: root/xmouseless.c
diff options
context:
space:
mode:
Diffstat (limited to 'xmouseless.c')
-rw-r--r--xmouseless.c3
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);