Why doesn't HasFocus() work properly in BP?

BlitzPlus Forums/BlitzPlus Programming/Why doesn't HasFocus() work properly in BP?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

http://www.blitzbasic.com/codearcs/codearcs.php?code=853

There's the function to which I refer. I didn't write it, someone else did. Basically if I remember correctly in Blitz3D it would return the number of the active window if the app had focus, or 0 if it did not.

But in BP it doesn't seem to work at all, at least when you have a window with a canvas rather than being in fullscreen mode.

I know there are alternative ways in BP to find out if the window has lost focus, but it sure would be nice if stuff I've grown accustomed to using would continue to work. It would certainly make it more likely that my code would work if ported back to BLitz3D.