Alt-tab cursor bug?

Greetings all, we have a issue with SDL 1.2.14 in that, when the user
alt-tabs away from the game (full screen mode obviously), the mouse
pointer on the desktop gets stuck in the top left corner, and you
can’t move it away from there. The only fix is alt-tab back into the
game, and then quit the game.

When the same game is made using SDL 1.2.13, then we don’t have that
issue at all.

This is going on when we do SDL_ShowCursor(SDL_DISABLE); to disable
the ‘hardware’ cursor, to enable our software ones.

If we don’t do that call, then it works as it should, but then we
can’t have colored cursors with SDL 1.2.14.

Can anyone think of anything that would cause such behavior between
SDL 1.2.13 & 1.2.14 ?

Hi,

21.02.2010 07:38, buginator wrote:

Greetings all, we have a issue with SDL 1.2.14 in that, when the user
alt-tabs away from the game (full screen mode obviously), the mouse
pointer on the desktop gets stuck in the top left corner, and you
can’t move it away from there. The only fix is alt-tab back into the
game, and then quit the game.

When the same game is made using SDL 1.2.13, then we don’t have that
issue at all.

This is going on when we do SDL_ShowCursor(SDL_DISABLE); to disable
the ‘hardware’ cursor, to enable our software ones.

If we don’t do that call, then it works as it should, but then we
can’t have colored cursors with SDL 1.2.14.

Can anyone think of anything that would cause such behavior between
SDL 1.2.13& 1.2.14 ?

This bug has been reported, located by me and fixed with the help of Tim
and Sam in the 1.2.14 aftermath
(http://bugzilla.libsdl.org/show_bug.cgi?id=849). Please test your
application with an up to date SDL 1.2 subversion branch compilation and
report remaining problems.

In fact I compiled such a patched 1.2.14 SDL version for the Windows 7
compilation of Enigma
(http://www.nongnu.org/enigma/download.html#stable). You may give the
included sdl.dll a try, if you do not want to compile SDL by yourself.

Please vote for a 1.2.15 SDL release.

Greets,

Ronald

Yes, this indeed fixes the problem.

We really need a 1.2.15 release to fix this!

Thanks for the heads up Ronald !On 2/21/10, Ronald Lamprecht <R.Lamprecht at t-online.de> wrote:

21.02.2010 07:38, buginator wrote:

Greetings all, we have a issue with SDL 1.2.14 in that, when the user
alt-tabs away from the game (full screen mode obviously), the mouse
pointer on the desktop gets stuck in the top left corner, and you
can’t move it away from there. The only fix is alt-tab back into the
game, and then quit the game.

When the same game is made using SDL 1.2.13, then we don’t have that
issue at all.

This is going on when we do SDL_ShowCursor(SDL_DISABLE); to disable
the ‘hardware’ cursor, to enable our software ones.

If we don’t do that call, then it works as it should, but then we
can’t have colored cursors with SDL 1.2.14.

Can anyone think of anything that would cause such behavior between
SDL 1.2.13& 1.2.14 ?

This bug has been reported, located by me and fixed with the help of Tim
and Sam in the 1.2.14 aftermath
(http://bugzilla.libsdl.org/show_bug.cgi?id=849). Please
test your application with an up to date SDL 1.2 subversion branch
compilation and report remaining problems.

In fact I compiled such a patched 1.2.14 SDL version for the Windows 7
compilation of Enigma
(http://www.nongnu.org/enigma/download.html#stable). You
may give the included sdl.dll a try, if you do not want to compile SDL by
yourself.

Please vote for a 1.2.15 SDL release.