New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When resizing a window using the mouse, the cursor jumps to the top left of the window #3598

Hubro opened this Issue Jan 22, 2019 · 1 comment


None yet
2 participants
Copy link

Hubro commented Jan 22, 2019

I'm submitting a…

[x] Bug
[ ] Feature Request
[ ] Documentation Request
[ ] Other (Please describe in detail)

Current Behavior

When I hold the Super key and use the right mouse button in order to resize a window, the mouse jumps to the top left of the screen. This happens on version 4.16 as well as a fresh build from the "next" branch, and it happens on two completely separate PCs, one running Manjaro, the other running Arch. Both systems are completely up-to-date and running the base auto-generated i3 config.

After Googling, the only other reported case of this issue I could find was this post from 2014, with a video describing the issue:

The only difference between his video and my issue is that the mouse doesn't necessarily jump to the absolute top left of the screen (0x0), but ends up between 0 and 100 px from the top left edge of the screen, based on where my mouse was before it jumped. Checking the debug logs (see below) it looks like the X and Y position of the cursor is divided by 10 for some reason.

Expected Behavior

I would expect the mouse to not jump to the top left of the screen.

Reproduction Instructions

Open two terminal windows and dock them horizontally. Place the mouse between the two terminal windows and press Super+Right click. As soon as the mouse button is pressed down, the cursor jumps to the edge between the windows. As soon as the mouse is moved, the cursor jumps to the top left of the screen.


Output of i3 --moreversion 2>&-:

Binary i3 version:  4.16 (2018-11-04) © 2009 Michael Stapelberg and contributors
Running i3 version: 4.16 (2018-11-04) (pid 1430)o abort…)
Loaded i3 config: /home/tomas/.config/i3/config (Last modified: Mon 07 Jan 2019 10:16:37 PM CET, 1234965 seconds ago)

The i3 binary you just called: /usr/bin/i3
The i3 binary you are running: i3

The issue happens regardless of i3 config. It happens with my custom config file and with the automatically generated one.

Logfile URL:

I believe these lines in the log file demonstrate the problem pretty well:

01/22/2019 05:22:06 AM - resize.c:resize_callback:29 - new x = 1592, y = 484
01/22/2019 05:22:06 AM - resize.c:resize_callback:29 - new x = 158, y = 47

Notice that as soon as I move the mouse, the mouse position moves to approximately 1/10th of the X and Y values.

- Linux Distribution & Version: Manjaro 18.0.2 and Arch Linux (up to date)
- Are you using a compositor (e.g., xcompmgr or compton): no

@i3bot i3bot added bug 4.16 labels Jan 22, 2019


This comment has been minimized.

Copy link

Hubro commented Jan 22, 2019

Ok, right away after reading the debug log the 1/10th mouse position rang a bell. I just remembered why. I set my mouse sensitivity to 1/10th using the "Coordinate Transformation Matrix" property:

$ xinput --set-prop "Logitech USB Receiver Mouse" "Coordinate Transformation Matrix" 0.100000, 0.000000, 0.000000, 0.000000, 0.100000, 0.000000, 0.000000, 0.000000, 1.000000

This is the only way I've found to reduce the mouse sensitivity in Linux, and it's essential to the usability of my system.

Apparently this transformation matrix also causes i3 to move the mouse to 1/10th of the X and Y coordinates when starting a window resize using the mouse.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment