LWJGL Forum

Archive => Resolved Bugs/RFE => Topic started by: Simon Felix on December 29, 2011, 13:18:29

Title: [FIXED] Resizable display and mouse cursor
Post by: Simon Felix on December 29, 2011, 13:18:29
Hello

When enabling resizable windows I can move the cursor over the lower right edge. The cursor changes as expected to the SizeNWSE cursor. When moving the cursor back into the window it stays that way when it should change back to the LWJGL-set cursor.

This issue can be reproduced with Windows 7 (and 8 ), lastest patch-levels.

Cheers,
Simon
Title: Re: [BUG] Resizable display and mouse cursor
Post by: Simon Felix on December 29, 2011, 17:50:59
Also, working around the issue is made difficult by another bug. Re-setting the cursor (every frame) changes the cursor even when it's positioned outside the client area, over the window border for example. That way it starts to flicker when I try to resize the window.
Title: Re: [BUG] Resizable display and mouse cursor
Post by: Matzon on December 30, 2011, 08:39:41
I have experienced issues with the cursor not changing back, but I haven't found the reason. This is with the generic cursor.
I have not tested with a LWJGL set cursor, but there could be some issues there.
Title: Re: [BUG] Resizable display and mouse cursor
Post by: Simon Felix on December 30, 2011, 22:21:57
Handling WM_SETCURSOR does the trick. Patch is attached. One day, when I'm all grown up I'll be a real Win32 programmer...
Title: Re: [BUG] Resizable display and mouse cursor
Post by: princec on January 02, 2012, 20:22:30
Nice patch, fixes an irritation.

Cas :)
Title: Re: [FIXED] Resizable display and mouse cursor
Post by: Matzon on January 02, 2012, 22:12:03
patch applied