1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Windowing: Fix mouse position in client area for maximised windows with non-native titlebar

The incorrect mouse coordinates could be observed by hovering over
widgets such as buttons in a maximised window using a non-native
titlebar.
This commit is contained in:
reuk 2025-01-21 16:16:10 +00:00
parent da45497a3d
commit 183c327e75
No known key found for this signature in database

View file

@ -1527,7 +1527,7 @@ public:
std::optional<BorderSize<int>> getCustomBorderSize() const
{
if (hasTitleBar() || (styleFlags & windowIsTemporary) != 0)
if (hasTitleBar() || (styleFlags & windowIsTemporary) != 0 || isFullScreen())
return {};
return BorderSize<int> { 0, 0, 0, 0 };