reuk
d4e802016a
VST3: Fix issue where Ardour would repeatedly try to resize editors
Ardour seems to listen to the bounds of the plugin window, and will call
`onSize` on the plugin editor when move/resize events are sent to the X
window - even if the size of the window didn't really change. This can
result in an infinite resize loop, where calling `onSize` on the VST3
instance sends a resize event to the plugin window, and this event
causes Ardour to call `onSize` on the plugin view.
To get around this, the Linux ComponentPeer will no longer request a
bounds change from the window system if the requested bounds are the
same as the current bounds.
4 years ago
reuk
d62d3aaa4f
PopupMenu: Add option to specify initially-selected menu item
4 years ago
reuk
326d8deb16
PopupMenu: Tidy up Options implementation
4 years ago
ed
40c86d6b2f
Linux: Fail more gracefully on systems which don't support 32-, 24-, or 16-bit RGB displays
4 years ago
reuk
3afaaa48be
FileChooser: Fix IFileDialogEvents leak
4 years ago
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
7c96f18663
TextEditor: Fixed a bug where the horizontal viewport scrollbar could be shown unnecessarily
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
ed0851313b
Displays: Added floating-point physical<->logical coordinate conversion methods
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
64b9366e8f
CharacterFunctions: Add new function to move pointer past whitespace
4 years ago
reuk
46d24cc1ab
TextEditor: Avoid starting timer unnecessarily when setting text
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
ad38182530
Added checks for DOXYGEN #define when excluding modal methods in headers
4 years ago
ed
04c28eaa3b
Added a missing #if JUCE_MODAL_LOOPS_PERMITTED guard to FileChooser modal methods
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
d7358d0ef1
Update SidePanel visibility when shown/hidden and set always on top
4 years ago
ed
af69be5346
Windows: Tidied up the usage of the JUCE_COMCALL, JUCE_COMCLASS, and JUCE_IUNKNOWNCLASS macros
4 years ago
ed
1b2f17f2e8
PopupMenu: Check currently focused component before passing keyboard focus on menu completion
4 years ago
reuk
3baaad8b5b
XmlElement: Update loops to use new iterators
4 years ago
reuk
dbfdaff00b
XWindowSystem: Prevent PopupMenus from accidentally dismissing themselves
4 years ago
ed
091ab8a3a3
Made the windowIgnoresKeyPresses ComponentPeer style flag documentation a bit clearer
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
891d86fe6b
Don't trigger a fake mouse move from Component::sendFakeMouseMove() if the component passes through all mouse events
4 years ago
ed
bd86eb667e
Android: Fixed compile error when push notifications are disabled
4 years ago
ed
8fe3d29750
Fixed spurious updates when initialising ChoicePropertyComponent with ValueWithDefault
4 years ago
ed
33dd896ab2
Ensure that keyboard focus is always given away when components are made invisible
4 years ago
reuk
f647c54b74
FileChooserDialogBox: Ensure filechoosers open in front of other windows
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
586ab8927d
Fix warnings when building in C++20 mode
4 years ago