Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0006374Dwarf FortressTechnical -- Generalpublic2013-09-21 05:052014-03-12 10:26
Blue_Dwarf 
 
noneminorrandom
newopen 
WindowsXPSP3
0.34.11 
 
0006374: SDL library needs updating -- Alt-tabbing sometimes locks mouse cursor in upper left corner of screen
When I alt tab from the game, there is a chance (one in three or so) that the mouse cursor will be stuck in the upper left corner of the screen.

Clicking anywhere (either on the game tab, any other tab, desktop or browser) sends it back to the corner, preventing me from maximizing the game window again or doing anything. After trying to click something three-four times, the issue disappears until the next series of alt tabbing.

Simply keeping the game open also does that, so trying to use an internet browser while the game is running is also difficult (it's even doing that as I'm typing this).

It appears in both vanilla and modded DF, with or without related programs running (such as Dwarf Therapist).
1. Alt tab from the game
2. Try to click anything, or get back into the game
3. Continue alt-tabbing until the issue appears
This is probably a case isolated to my system, as I see nobody else being aware of it. Still, it's the only software that does that.

I tried to find solutions on the internet, but nothing seems to work (one thing I tried was disabling visual themes for the game's .exe, right click-> properties-> compatibility-> disable visual themes). I also ran anti-virus/malware scans in case it was caused by something else.

I don't use any custom mouse software. I have a Logitech G15 keyboard with the latest drivers installed.
No tags attached.
Issue History
2013-09-21 05:05Blue_DwarfNew Issue
2013-09-21 05:35Blue_DwarfNote Added: 0024112
2014-03-08 19:40lethosorNote Added: 0024596
2014-03-11 15:05Blue_DwarfNote Added: 0024602
2014-03-12 10:25FootkerchiefSummaryAlt tabbing regularly causes mouse to be locked in upper left corner of the screen => SDL library needs updating -- Alt-tabbing sometimes locks mouse cursor in upper left corner of screen
2014-03-12 10:26FootkerchiefNote Added: 0024603

Notes
(0024112)
Blue_Dwarf   
2013-09-21 05:35   
By "vanilla and modded DF", I actually mean "vanilla (with Phoebus tileset and Lazy Newb Pack) and modded DF (such as Masterwork)".
(0024596)
lethosor   
2014-03-08 19:40   
This is a known issue in SDL. It was fixed in 1.2.15, which DF doesn't use. I suppose you could try replacing the SDL library included with DF and see if it helps.
(0024602)
Blue_Dwarf   
2014-03-11 15:05   
I think that worked.

I haven't had that problem after many hours of playing with SDL 1.2.15.
(0024603)
Footkerchief   
2014-03-12 10:26   
Thanks for reporting back!