From 85a17809ab8652a2f2c63c1aed2c7e445df6e1af Mon Sep 17 00:00:00 2001 From: reuk Date: Mon, 23 Jun 2025 19:26:53 +0100 Subject: [PATCH] Windows: Use isKioskMode() getter where appropriate in peer --- modules/juce_gui_basics/native/juce_Windowing_windows.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/juce_gui_basics/native/juce_Windowing_windows.cpp b/modules/juce_gui_basics/native/juce_Windowing_windows.cpp index 0e7c6cf520..7edd097bb1 100644 --- a/modules/juce_gui_basics/native/juce_Windowing_windows.cpp +++ b/modules/juce_gui_basics/native/juce_Windowing_windows.cpp @@ -2557,7 +2557,7 @@ private: // On Windows 11, the native drop shadow also gives us a 1px transparent border and rounded // corners, which doesn't look great in kiosk mode. Disable the native shadow for // fullscreen windows. - return Desktop::getInstance().getKioskModeComponent() != &component + return ! isKioskMode() && (0 != (styleFlags & windowHasDropShadow)) && (0 == (styleFlags & windowIsSemiTransparent)) && (0 == (styleFlags & windowIsTemporary)); @@ -3903,8 +3903,7 @@ private: // and if Microsoft's own VS Code doesn't have perfect mouse handling I don't // think we can be expected to either! - if ((styleFlags & windowIsResizable) != 0 - && Desktop::getInstance().getKioskModeComponent() != &component) + if ((styleFlags & windowIsResizable) != 0 && ! isKioskMode()) { const ScopedThreadDPIAwarenessSetter scope { hwnd };