Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
When resizing a window using the mouse, the cursor jumps to the top left of the window #3598
I'm submitting a…
[x] Bug [ ] Feature Request [ ] Documentation Request [ ] Other (Please describe in detail)
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: https://faq.i3wm.org/question/4661/mouse-jumps-when-resizing-window/index.html
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.
I would expect the mouse to not jump to the top left of the screen.
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.
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: https://logs.i3wm.org/logs/5674610515247104.bz2
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
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:
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.