From 183c327e75e7c2d9826b78eb020ee5b1e7371d9d Mon Sep 17 00:00:00 2001 From: reuk Date: Tue, 21 Jan 2025 16:16:10 +0000 Subject: [PATCH] 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. --- modules/juce_gui_basics/native/juce_Windowing_windows.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/juce_gui_basics/native/juce_Windowing_windows.cpp b/modules/juce_gui_basics/native/juce_Windowing_windows.cpp index 2e2eec13ad..b5cc9af334 100644 --- a/modules/juce_gui_basics/native/juce_Windowing_windows.cpp +++ b/modules/juce_gui_basics/native/juce_Windowing_windows.cpp @@ -1527,7 +1527,7 @@ public: std::optional> getCustomBorderSize() const { - if (hasTitleBar() || (styleFlags & windowIsTemporary) != 0) + if (hasTitleBar() || (styleFlags & windowIsTemporary) != 0 || isFullScreen()) return {}; return BorderSize { 0, 0, 0, 0 };