Bug 4371 - Alt-Tab still has input context
Status: RESOLVED FIXED
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Misc
Version: unspecified
Hardware: PC Windows XP
: P3 normal
Assignee: Zachary J. Slater
QA Contact: ioquake3 bugzilla mailing list
URL:
: 4334
Depends on:
Blocks:
 
Reported: 2009-12-08 10:27 EST by thorn
Modified: 2009-12-14 17:47:41 EST
3 users (show)

See Also:



Description thorn 2009-12-08 10:27:08 EST
While alt-tabbed, the engine will continue to have input context. Clicking the mouse on the desktop will fire mouse1 ingame.
Comment 1 Chris "Lakitu7" Schwarz 2009-12-08 19:20:21 EST
I have this too, on Win7 x64. Further, if I'm in the menus and have the window deselected but visible, the cursor follows my OS's cursor, so it's receiving mouse input as a whole, not just clicks.
Comment 2 Tim Angus 2009-12-09 11:43:45 EST
Does it still happen when in_mouse is set to -1 and a vid_restart issued?
Comment 3 Chris "Lakitu7" Schwarz 2009-12-09 14:11:22 EST
Yes. I use in_mouse -1 anyway. Vid_restart had no change.
Comment 4 Tim Angus 2009-12-10 10:03:06 EST
*** Bug 4334 has been marked as a duplicate of this bug. ***
Comment 5 Tim Angus 2009-12-10 10:04:30 EST
Please give this SDL DLL a try: http://icculus.org/~tma/SDL.dll
Comment 6 thorn 2009-12-10 13:03:34 EST
After a few minutes of testing with that sdl.dll the bug reappears. Note it does not seem to happen every time the game is alt tabbed.
Comment 7 Chris "Lakitu7" Schwarz 2009-12-10 13:51:03 EST
The menu mouse still consistently follows my real mouse, when trem does not have input focus. Having mouse1 fire when it's not in context isn't happening to me now but that aspect wasn't regularly occurring for me so it's hard to tell if there was a change.
Comment 8 Tim Angus 2009-12-10 15:47:11 EST
(In reply to comment #6)
> After a few minutes of testing with that sdl.dll the bug reappears. Note it
> does not seem to happen every time the game is alt tabbed.

Can you be more specific under what circumstances it reoccurs?
Comment 9 Tim Angus 2009-12-10 19:53:47 EST
OK, try again, same URL. SDL_APPMOUSEFOCUS was correctly lost, but the directx driver ignored it. The windib driver shouldn't be affected.

I discussed Lakitu's comments on IRC, I think his behaviour is what we expect and nothing to worry about.
Comment 10 thorn 2009-12-11 11:48:35 EST
Yup, that DLL seems to have sorted the context bug. \o/
Comment 11 Tim Angus 2009-12-14 17:47:41 EST
Fixes to this and bug #4334 are now in subversion SDL.