diff --git a/.travis.yml b/.travis.yml index 32533727..01e9f5c2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,6 +14,7 @@ addons: - libtool - libglib2.0-dev - libncurses5-dev + - gpm - libgpm-dev - gperf diff --git a/src/fmouse.cpp b/src/fmouse.cpp index 1a2caa14..79d42698 100644 --- a/src/fmouse.cpp +++ b/src/fmouse.cpp @@ -1036,7 +1036,7 @@ void FMouseUrxvt::processEvent (struct timeval* time) y = 1; if ( x > max_width ) - x = max_height; + x = max_width; if ( y > max_height ) y = max_height;