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
Dan Walmsley
2e555be402
[OSX] programatically implement child window relationship
4 years ago
Dan Walmsley
2ea49defb6
[osx] easily support using nspanel from windowbaseimpl.
4 years ago
Dan Walmsley
041fdb6bc9
call bring to front when window is made key.
4 years ago
Dan Walmsley
f7daa81fbe
dont create nspanel / nswindow at show.
4 years ago
Dan Walmsley
dc1b6a669b
[osx] make bringtofront work correctly for owned and modal windows.
4 years ago
Dan Walmsley
a2d83e8fae
[OSX] programatically implement child window relationship
4 years ago
Dan Walmsley
0a4b3386d5
[OSX] fix SetParent
4 years ago
Dan Walmsley
84ea185f0f
[OSX] dialogs stay ontop of main window when another app is displayed.
4 years ago
Dan Walmsley
b605c5c452
[OSX] fix border shadow invalidation.
4 years ago
Dan Walmsley
5b66f26065
Fix osx dialog style mask.
makes the titlebar look like normal window.
4 years ago
Dan Walmsley
30377966e6
fix incorrect return value.
4 years ago
Dan Walmsley
02b3bf253a
add OnInitialiseNSWindow to allow inheritors to hook into NSWindow/Panel setup before being shown.
4 years ago
Dan Walmsley
a77f9d3e54
add setCanBecomeKeyWindow to protocol
4 years ago
Dan Walmsley
aa06e02c6d
arrange fields nicely.
4 years ago
Dan Walmsley
e4bbebac7d
restore _canBecomeKeyWindow flag, important to distinguish behavior of a window and a popup.
4 years ago
Dan Walmsley
060ec9694b
Merge pull request #8165 from AvaloniaUI/fixes/position-osx
Fix more OSX regressions
4 years ago