You are not logged in.

#1 2015-04-12 02:50:53

B-Con
Member
From: USA
Registered: 2007-12-17
Posts: 554
Website

[Solved] Mouse cursor doesn't match click location in i3

I have a problem with my i3 wm setup: The mouse click position doesn't match the display location, except in some applications.

The mouse cursor stops about 20px from the bottom of the screen, about 2/3 of the way up the i3-bar. It also extends that far over the top of the screen. In some windows, the mouse click doesn't register where the cursor is actually positioned on the screen and instead registers about 20px below the mouse cursor. It seems like the mouse display location is shifted above where it actually is.

But some windows are OK. When I move the mouse into a Firefox or VLC window I note that the mouse jumps down a few pixels, about equal to the above displacement, and the mouse location and click location then match in that window. If I put the window in floating mode and drag it to cover i3-bar and extend off the bottom of the screen, the mouse cursor will properly go to the bottom of the screen while in that window, then jump up when I move the cursor out of the window. But in some other apps, like in PCManFM, all clicks register just below the displayed cursor.

Side (possible irrelevant) note: Occasionally this problem is not present on startup. Rarely, when I open i3 after a clean boot, the mouse will properly go to the bottom of the screen and the problem won't start until a few seconds later. (I'm not sure what the trigger is because it happens so rarely.)

My setup: no login manager or DE, plain i3, i3bar, conky writing to dzen2, nvidia-340xx, xorg.conf generated by nvidia-xconfig.

This only occurs in i3 (tried Openbox, don't see the problem). Problem exists running a clean i3 setup with a blank config and no i3-bar, dzen2, or anything. Tried i3 and i3-git. I have a separate machine (Ubuntu) without the problem.

It's been going on for several (7-ish?) months because I just put up with it and hoped it was an update that would fix itself, so I'm not sure what changed (if anything) around the time the problem started. It may have been around when I was messing with getting Steam to work and switching graphics cards, but I think now everything is back to how it was before that.

Related problem: Using "xinit" to start X will start i3 but the mouse and keyboard don't work in i3. If I use "startx" then they do work, but with this above problem. It's possible this started at the same time as the above problem.

Any ideas or debugging tips? Why are some apps causing the mouse to be displayed in the correct position while elsewhere it's skewed?

Last edited by B-Con (2015-04-12 21:26:50)

Offline

#2 2015-04-12 08:33:17

Grima
Member
Registered: 2011-09-02
Posts: 58

Re: [Solved] Mouse cursor doesn't match click location in i3

If you have installed xcb-util-cursor-git (or the non-git version), try reinstalling that package.

Offline

#3 2015-04-12 21:25:19

B-Con
Member
From: USA
Registered: 2007-12-17
Posts: 554
Website

Re: [Solved] Mouse cursor doesn't match click location in i3

Ah, that worked. I had xcb-util-cursor-git installed presumably from back when I was on i3-git, and I didn't realized that i3 brought in xcb-util-cursor-git as a dependency, so I didn't add it to my list of AUR packages to update.

I thought I had removed and reinstalled all the i3 dependencies when troubleshooting the problem before, which would have fixed the problem, but I guess I didn't. Doh!

Thanks.

Offline

Board footer

Powered by FluxBB