ed
c32142a215
Windows: Fixed a build error and some unreachable code warnings when JUCE_WIN_PER_MONITOR_DPI_AWARE=0
4 years ago
reuk
7a0b17c0d3
LinuxComponentPeer: Fix scaling in custom windows created by plugins
Previously, things like PopupMenus which were created in their own
windows were not being scaled correctly on HiDPI displays on Linux.
This patch forces the display scale to 1.0 in plugins, meaning that
the transform applied to the main plugin window is the sole source
of truth for component scaling in plugins.
4 years ago
reuk
fd2f866dd1
FileChooser: Avoid throwing bad_weak_ptr
It seems like shared_from_this may not be enabled when a unique_ptr is
assigned to a shared_ptr (although it *should* be enabled when
constructing a new shared_ptr from a unique_ptr). Functions that return
objects that may need to use shared_from_this now return shared_ptr,
just to be safe.
Additionally, in some cases, shared_from_this was being called from
Thread::run after the last reference to the shared object had been
released. We now call shared_from_this during 'open', which will always
run on the message thread while at least once reference to the shared
object is alive.
4 years ago
ed
1ff7fc38b1
Windows: Added ScopedDeviceContext helper
4 years ago
ed
f6338c0f8e
Windows: Added ScopedThreadDPIAwarenessSetter for correctly setting and resetting thread DPI-awareness for methods which interact with an HWND and removed some DPI workarounds
4 years ago
ed
3a0af69eff
AudioPluginHost: Added an application-level setting for scaling plug-ins on Windows
4 years ago
reuk
45409bb4e6
FileChooser: Hide chooser when it leaves scope on Windows
4 years ago
ed
e18284978f
FileChooser: Check JUCE_MODAL_LOOPS_PERMITTED in Native::runModally()
4 years ago
ed
3d378d0384
Windows: Avoid setting WINDOWPOS in handlePositionChanging() when "new" coordinates are floating-point rounding errors due to scale factor conversion
4 years ago
ed
ec0345c093
Windows: Check whether child HWNDs were already scaled during the scale factor listener callback to avoid double-scaling them in handleDPIChanging()
4 years ago
ed
cb57904740
Windows: Improved support for DPI-aware embedded windows in HWNDComponent
4 years ago
reuk
d5b55a8474
X11: Make `setFullscreen` put windows into true maximised mode
4 years ago
reuk
576cd24665
X11: Use correct scale factor on Ubuntu
4 years ago
Tom Poole
a05424fd3d
Linux: Added better support for minimal X11 environments
4 years ago
ed
b5a06b0e2f
Windows: Use MapWindowPoints() in HWNDComponentPeer::getBounds() to get correct client coordinates when we're the child of another HWND
4 years ago
ed
fd83e0f51e
Removed Displays const_casts from ComponentPeer implementations
4 years ago
ed
ac1425f94e
Added Display::safeAreaInsets and implementations for iOS and Android
4 years ago
ed
6d8c0b2fc3
Android: Set layoutInDisplayCutoutMode to LAYOUT_IN_DISPLAY_CUTOUT_MODE_ALWAYS so fullscreen kiosk apps fill the entire display on devices with cutouts
4 years ago
ed
c0cb5dcf34
Android: Tidied up some code in AndroidComponentPeer
4 years ago
ed
56f9f83638
iOS: Check UIStatusBarHidden .plist value in prefersStatusBarHidden property to correctly hide/show the status bar when requested
4 years ago
ed
4ef5012271
iOS: Fixed UIViewAlertForUnsatisfiableConstraints warning when showing the onscreen keyboard
4 years ago
reuk
837ab64dbd
Android: Fix numeric conversion warnings
4 years ago
ed
46f5b126d5
Tidied up some template statement whitespace
4 years ago
ed
af69be5346
Windows: Tidied up the usage of the JUCE_COMCALL, JUCE_COMCLASS, and JUCE_IUNKNOWNCLASS macros
4 years ago
reuk
dbfdaff00b
XWindowSystem: Prevent PopupMenus from accidentally dismissing themselves
4 years ago
ed
f43784dc5b
macOS: Propagate focus loss message when resigning key window status and only grab focus if window can become the key window
4 years ago
ed
bd86eb667e
Android: Fixed compile error when push notifications are disabled
4 years ago
Tom Poole
473fc357bb
OSX 10.11: Fixed a CALayer crash
4 years ago
reuk
755e93e1c0
HWNDComponentPeer: Avoid assertions when opening submenus
4 years ago
reuk
651c91eb56
ColorSpacePtr: Tidy up uses
4 years ago
reuk
5490003964
LinuxComponentPeer: Dismiss modals more proactively
This patch should resolve an issue where the popupmenu for a combobox
could become 'stranded' if the plugin window was moved while the box was
open.
4 years ago
reuk
838d55569a
LinuxComponentPeer: Add makeXFreePtr helper function
4 years ago
reuk
4a4cca333e
LinuxComponentPeer: Remove magic numbers
4 years ago
reuk
55036de873
LinuxComponentPeer: Get rid of unused templating
4 years ago
reuk
85facf6d6e
HWNDComponentPeer: Dismiss modals more proactively
This change makes heavyweight views listen to window events from higher
in the window hierarchy. If a move or resize event from higher in the
hierarchy is encountered, blocking modal components will be dismissed.
This patch should resolve an issue where the popupmenu for a combobox
could become 'stranded' if the plugin window was moved while the box was
open.
4 years ago
reuk
60f756e22f
NSViewComponentPeer: Dismiss modals more proactively
This change will make plugin views (and other heavyweight views) listen
to their containing window, and dismiss any blocking modal components,
such as PopupMenus when the window is moved or resized.
This should fix issues where opening a combobox then moving the plugin
window could leave the combobox's popupmenu 'stranded'.
4 years ago
reuk
99e2cd0e3f
PopupMenu: Dismiss popups when minimising parent window
This behaviour was already present on windows, so this patch updates
Linux and macOS window-handling to match.
4 years ago
reuk
51170e6073
UIViewComponentPeer: Enable non-full-screen views
4 years ago
reuk
04f2ca61e2
UIViewComponentPeer: Simplify view transition reporting
4 years ago
Tom Poole
8fc1195c35
macOS: Set CALayer format to fix Big Sur invalidation region
4 years ago
Tom Poole
9e4fceb031
Revert "macOS: Set CALayer format to fix Big Sur invalidation region"
This reverts commit a6217ae9fb
.
4 years ago
ed
d554365161
macOS: Fixed repaint issue with JUCE_COREGRAPHICS_RENDER_WITH_MULTIPLE_PAINT_CALLS enabled that was introduced in 8d3fd927
4 years ago
ed
d3f91fd76c
macOS: Fixed repaint issue with JUCE_COREGRAPHICS_RENDER_WITH_MULTIPLE_PAINT_CALLS enabled that was introduced in 8d3fd927
4 years ago
Tom Poole
a6217ae9fb
macOS: Set CALayer format to fix Big Sur invalidation region
4 years ago
reuk
cd25daf892
FileChooser: Respect comma delimiters for file filters
4 years ago
ed
8d3fd92784
macOS: Redraw drop-shadow on repaint for transparent NSWindows to fix some drawing artifacts
4 years ago
ed
84d9117054
Linux: Check for valid display in updateScaleFactorFromNewBounds()
4 years ago
ed
6325230f61
Windows: Use rectangleFromRECT() to clean up some code
4 years ago
ed
09c25fedfd
Windows: Retrieve work area rectangle for all connected monitors
4 years ago
ed
b614f9e01e
Windows: Only call Displays::updateToLogical() on per-monitor DPI-aware threads
4 years ago