mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
macOS: Correctly populate display safeAreaInsets on macOS
This commit is contained in:
parent
a7d1e61a55
commit
384ddee376
3 changed files with 26 additions and 23 deletions
|
|
@ -47,6 +47,15 @@ struct WindowingHelpers
|
|||
{
|
||||
return Process::isForegroundProcess() || isEmbeddedInForegroundProcess (viewComponent);
|
||||
}
|
||||
|
||||
template <typename Value>
|
||||
static BorderSize<int> roundToInt (BorderSize<Value> border)
|
||||
{
|
||||
return { ::juce::roundToInt (border.getTop()),
|
||||
::juce::roundToInt (border.getLeft()),
|
||||
::juce::roundToInt (border.getBottom()),
|
||||
::juce::roundToInt (border.getRight()) };
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace juce::detail
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue