Max Katz
8f11c5a6ed
macOS implementation
3 years ago
Steven Kirk
872eca05b2
Disable minimize button on owned windows again.
7eb95255c regressed disabling the minimize button on owned windows. Split what was previously `IsDialog` into two flags: `IsModal` and `IsOwned` and use `IsOwned` to control the disabled state of the minimize button.
3 years ago
Steven Kirk
102b1b351b
Add null check,
Customer was seeing a crash in this method, don't have a repro but other uses of `_parent` are surrounded by a null check so this makes sense I think.
3 years ago
Steven Kirk
7eb95255cb
Don't mark all owned windows as dialogs.
This was preventing owner windows of non-modal dialogs from receiving key window status, meaning that input was broken in combination with embedding (Avalonia controls did work however because the routing was carried out internal to Avalonia).
3 years ago
Steven Kirk
d00f19d556
Fix #9565
- Only bring window to front if it's on the currently active space
- Ensure correct order of child windows after fullscreen transition
3 years ago
Nikita Tsukanov
bb1469dbff
[OSX] Use non-opaque window background for non-transparent windows
3 years ago
Nikita Tsukanov
c7d76e49e4
[OSX] Fixed NativeMenu memory leak
3 years ago
Nikita Tsukanov
84c04bcfeb
[OSX] Fixed multi-window freeze on Show when another window is rendering
3 years ago
Dan Walmsley
1b7544509d
fix minimise button being disabled when either a parent or a dialog.
3 years ago
Dan Walmsley
3b42940770
use didResignKey notification instead of override resignKey
3 years ago
Dan Walmsley
d34c31fa1c
implement disabling app delegate.
3 years ago
robloo
6f5bae821b
Fix usage of updated Screen properties
This fixes the macOS build
3 years ago
daniilpavliuchyk
677e89edd0
WIP
4 years ago
daniilpavliuchyk
f6cae3af06
WIP
4 years ago
daniilpavliuchyk
50cea008d7
WIP
4 years ago
Steven Kirk
b83b795f57
Don't bring old parent window to front.
When a window is closed, its parent window is set to null, which caused this code to run. This line caused the parent window to be brought to front, and should have also caused any other child windows to be brought to front, but it seems OSX ignored those requests, causing #8878 .
Simply don't bring the parent window to the front when a child window is closed. I couldn't work out why this code was necessary anyway, and all integration tests still pass.
Fixes #8878 .
4 years ago
Steven Kirk
9d356894bc
macOS: Don't bring invisible window to front.
Check that a window is visible before bringing it to front, as bringing to front also shows the window.
4 years ago
Nikita Tsukanov
d1f3c4d691
[mac] Don't update layer if IOSurface doesn't have any valid content yet
4 years ago
Dan Walmsley
efcca77ddb
only trigger resized event if the window is shown.
4 years ago
Dan Walmsley
423dacda5b
[OSX] popups shouldnt have shadow
4 years ago
Steven Kirk
2822f5bfcb
Fix window minimization attempt 2.
The previous solution didn't work for owned windows. Hopefully this fixes the problem at its root: that `BringToFront` activates a window even if it's miniaturized.
4 years ago
Steven Kirk
4b08e659f6
Revert "Fix window minimization."
This reverts commit 20ddbad2ad .
It didn't work with owned windows, there's something else going on here.
4 years ago
Steven Kirk
dfa0c44269
Set actualWindowState earlier.
Previously, `_actualWindowState` was being set after the window state had finished changing, but `ExitFullScreenMode` calls `UpdateStyle` which expects `_actualWindowState` to be up-to-date, meaning that previously we ended up with an invalid size when exiting full screen mode programatically.
4 years ago
Steven Kirk
20ddbad2ad
Fix window minimization.
A non-client click was being received after the click to minimize the window, which caused a call to `_parent->BringToFront();`, meaning the window got immediately restored. Ignore clicks when the window is minimized.
Fixes #8335
4 years ago
Steven Kirk
355ba94fa7
Don't return FrameSize until window is shown.
Since #8629 , the content size isn't set until the window is shown, so we can't know the frame size.
4 years ago
Max Katz
06e141bf81
Update macOS implementations with some UTType support
4 years ago
Dan Walmsley
33c61fdac5
reduce work done on osx native side.
4 years ago
Dan Walmsley
485d9b04a9
Merge pull request #8269 from AvaloniaUI/fixes/osx-setcontent-size-shadow-invalidation
Fixes/osx setcontent size shadow invalidation
4 years ago
Dan Walmsley
5f5fc6e01f
osx: restore missing api for cef - electron compatibility
4 years ago
Dan Walmsley
e5a3820fbb
whenever we become key... dispatch invalidateShadow
4 years ago
Dan Walmsley
0470369af0
osx: ensure shadow is invalidated on show.
4 years ago
Dan Walmsley
e2dbf68b02
fix call to virtual method from ctor.
4 years ago
Dan Walmsley
6e916c21e5
fix transition to fullscreen mode.
4 years ago
Dan Walmsley
11595184d5
fix traffic light setting.
4 years ago
Dan Walmsley
6a848a389f
dont re-initialise nswindow on show.
4 years ago
Dan Walmsley
bd0d81d6af
fix logic for deciding if chrome buttons should be shown or not in extended mode.
4 years ago
Dan Walmsley
9e03c05713
osx: fix crash when modal dialog is opened over fullscreen parent.
4 years ago
Dan Walmsley
643fe6675e
prevent segfault when closing app with child windows open.
4 years ago
Dan Walmsley
84a7d31f18
Merge pull request #8248 from AvaloniaUI/fixes/prevent-parent-resizing-when-modal-opened
[OSX] dont allow disabled windows to resize.
4 years ago
Dan Walmsley
cea6bc27a0
Merge pull request #8238 from AvaloniaUI/fixes/disable-parent-chrome-buttons-when-modal-is-shown
OSX: Disable parent chrome buttons when modal is shown
4 years ago
Dan Walmsley
2f1ada6892
Merge pull request #8239 from AvaloniaUI/fixes/osx-shadow-invalidation
OSX Shadow invalidation when window sized
4 years ago
Dan Walmsley
0ab383ed89
fix build warnings.
4 years ago
Dan Walmsley
32a61c0ea4
dialogs should not be minimizable.
4 years ago
Dan Walmsley
05be2056e8
dispatch bring to front parent when removing a child window.
4 years ago
Dan Walmsley
f017acae56
dialogs should not be minimizable.
4 years ago
Dan Walmsley
cef238d195
dispatch bring to front parent when removing a child window.
4 years ago
Dan Walmsley
b48888e9bf
[osx] easily support using nspanel from windowbaseimpl.
4 years ago
Dan Walmsley
2cd8ee003f
call bring to front when window is made key.
4 years ago
Dan Walmsley
61449dc401
dont create nspanel / nswindow at show.
4 years ago
Dan Walmsley
8a39240eea
[osx] make bringtofront work correctly for owned and modal windows.
4 years ago