We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87cec3b commit d66ca54Copy full SHA for d66ca54
modules/juce_gui_basics/native/juce_UIViewComponentPeer_ios.mm
@@ -53,8 +53,8 @@
53
54
void setWindowScene (UIWindowScene* x) API_AVAILABLE (ios (13.0))
55
{
56
- windowScene = x;
57
- listeners.call ([] (auto& l) { l.windowSceneChanged(); });
+ if (std::exchange (windowScene, x) != x)
+ listeners.call ([] (auto& l) { l.windowSceneChanged(); });
58
}
59
60
UIWindowScene* getWindowScene() const API_AVAILABLE (ios (13.0))
0 commit comments