Windows / JUCE8 : wrong mouse position when the window is maximized

Hello

Strange bug …
When the window is maximized, the position given in the mouseDown method is wrong. For instance, the position given is (3 ; 0) where it should be something like (8 ; 7) (my measurements are not precise).
My code works perfectly with JUCE 7. With JUCE 8, it works also when the window is not maximized.

With JUCE8 on MacOS, my code works perfectly when the window is full screen.

This sounds familiar - exactly which version of JUCE are you using? Is the problem present on the develop branch?

Also, is your window using the native titlebar, or a JUCE-drawn titlebar?

Hello

I am using JUCE 8.0.3 (production branch) and my windows has the JUCE title bar (setUsingNativeTitleBar (false); )

Thanks for reporting, it looks like this issue was introduced along with the big window handling rewrite that happened just after JUCE 8. It should be fixed here:

1 Like

Thanks a lot

I tested the develop branch and now it works perfectly.
Problem solved !