[0.17.32] [Linux] Key press causes mouse release?

This subforum contains all the issues which we already resolved.
drizzle
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sun Jul 17, 2016 2:18 am
Contact:

[0.17.32] [Linux] Key press causes mouse release?

Post by drizzle »

I'm seeing some strange interaction between the mouse and keyboard on the latest release it almost seems as if a key press causes a mouse release event and possibly vice versa.

The most obvious symptom is I can no longer click and run to place a line of belts, if I left click to place a belt and then run in a direction only the initial belt gets paced even though I am still holding down the mouse button. If I stand still and just move the mouse I can place a line of belts with one click, but if I press any key like 'z' it causes me to stop placing belts even though I'm still holding the mouse button.

I'm using linux and running the game through steam. I have this problem on 0.17.32 but not on 0.17.31 just tried starting a new single player game with default settings on those two versions.
robot256
Smart Inserter
Smart Inserter
Posts: 1032
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: Key press causes mouse release?

Post by robot256 »

I have this problem on my Windows laptop sometimes, because it locks the touchpad controls while typing. Probably unrelated since it just started happening, but possibly related to their using different functions to access the keyboard in order to fix layout translation bugs?
drizzle
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sun Jul 17, 2016 2:18 am
Contact:

Re: [0.17.32] [Linux] Key press causes mouse release?

Post by drizzle »

I'm not using a touchpad this is with a keyboard and mouse on a desktop. Here's the output of xinput --list

⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Logitech K520 id=10 [slave pointer (2)]
⎜ ↳ Logitech Wireless Mouse id=11 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Power Button id=7 [slave keyboard (3)]
↳ Sleep Button id=8 [slave keyboard (3)]
↳ HD Webcam C525 id=9 [slave keyboard (3)]
↳ Speakup id=12 [slave keyboard (3)]
User avatar
wheybags
Former Staff
Former Staff
Posts: 328
Joined: Fri Jun 02, 2017 1:50 pm
Contact:

Re: [0.17.32] [Linux] Key press causes mouse release?

Post by wheybags »

What distro/de/wm are you using?
I just tried this on my machine (debian sid/cinnamon) and it works fine.
drizzle
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sun Jul 17, 2016 2:18 am
Contact:

Re: [0.17.32] [Linux] Key press causes mouse release?

Post by drizzle »

I'm using Slackware 14.2 with xfce with kernel 4.4.157

I see there are some updated available I can try getting those to see if it helps.
User avatar
wheybags
Former Staff
Former Staff
Posts: 328
Joined: Fri Jun 02, 2017 1:50 pm
Contact:

Re: [0.17.32] [Linux] Key press causes mouse release?

Post by wheybags »

Ok, I tried on xfce, and I still can't reproduce.
Maybe you have some third party tool listening for global hotkeys or something like that?
Anyway, I will move to 1/0 magic for now since we can't reproduce this.
Sorry about that :(
drizzle
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sun Jul 17, 2016 2:18 am
Contact:

Re: [0.17.32] [Linux] Key press causes mouse release?

Post by drizzle »

Updating to the latest kernel glibc etc didn't help, but I no longer have this problem on 0.17.33

I just tried 0.17.32 and I still have the problem there. I wonder what it could have been :?:
posila
Factorio Staff
Factorio Staff
Posts: 5418
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [0.17.32] [Linux] Key press causes mouse release?

Post by posila »

Only change in 0.17.32 that that could cause it, that I could have think of, was reseting input state when SDL_KEYMAPCHANGED was received (that's a message that is supposed to indicate change of keyboard layout setting - e.g. user changed layout from US QWERTY to AZERTY). Because of this report I removed that change for 0.17.33 (input state reset is not needed actually, it just needs to update its modifier key mapping) ... but I couldn't verify it actually made any difference.

But it is kind of weird, that pressing keys also invokes SDL_KEYMAPCHANGED events.
Post Reply

Return to “Resolved Problems and Bugs”