Page 1 of 1

getWindowContainingMouse not updated

Posted: Tue Jul 01, 2008 05:09
by earthsruler
Hey!

I have made a system to minimise and restore windows which showed me a small issue with getWindowContainingMouse.

getWindowContainingMouse is not updated after a window is moved, only after mouse input, therefore if I use double click to minimise a window, and then don't move the mouse, the window will move away but according to getWindowContainingMouse it is still there.

Thanks.

ER.

Posted: Tue Jul 01, 2008 07:28
by scriptkid
Thanks,

so we have two options here: either resetting the 'mouseContaining' value when a window's position/dimension or visibility changes. Or by making the 'getWindowContainingMouse' method realtime.

Ticket here: http://www.cegui.org.uk/mantis/view.php?id=213