Sergey Mikolaitis
1ff87d8dd5
[Input] [MacOS] fix timestamp overflow on objC side
3 years ago
Steven Kirk
037ff6d265
Don't allow window zoom when CanResize=false.
Previously, even though the zoom button was disabled the user could still double-click on the title bar to zoom the window. Prevent that by returning the appropriate value from `NSWindow windowShouldZoom` and move the `CanZoom` logic into a central place for use by this method and `UpdateStyle`.
3 years ago
Steven Kirk
c837c10051
Don't call BringToFront on closed window.
3 years ago
Dan Walmsley
3de50b3baa
if the window is closed, we cannot become the key window.
3 years ago
Steven Kirk
e77c79b2aa
Enforce window order after a delay.
Sometimes, after `windowDidBecomeKey` is called and the window order is enforced via `BringToFront`, the window that became key is then moved to the front, breaking window order. Given that we're already invalidating the shadow by scheduling it on the dispatcher, use this opportunity to also enforce the window order again.
3 years ago
Steven Kirk
6a1910172c
Move traffic lights logic into one place.
3 years ago
Steven Kirk
e7a6d6fbc6
Implement windowWillUseStandardFrame
Seems that `NSWindow.isZoomed` returns the wrong result unless you implement this? ¯\_(ツ)_/¯
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
Nikita Tsukanov
bb1469dbff
[OSX] Use non-opaque window background for non-transparent windows
3 years ago
Dan Walmsley
3b42940770
use didResignKey notification instead of override resignKey
3 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
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
Dan Walmsley
e5a3820fbb
whenever we become key... dispatch invalidateShadow
4 years ago
Dan Walmsley
6e916c21e5
fix transition to fullscreen mode.
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
0ab383ed89
fix build warnings.
4 years ago
Dan Walmsley
2cd8ee003f
call bring to front when window is made key.
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
041fdb6bc9
call bring to front when window is made key.
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
84ea185f0f
[OSX] dialogs stay ontop of main window when another app is displayed.
4 years ago
Dan Walmsley
30377966e6
fix incorrect return value.
4 years ago
Dan Walmsley
e4bbebac7d
restore _canBecomeKeyWindow flag, important to distinguish behavior of a window and a popup.
4 years ago
Dan Walmsley
3faebf205a
[OSX] ensure window state is obeyed.
4 years ago
Dan Walmsley
168b91fd52
[OSX] ensure flyouts, menus and popups can be overlayed on fullscreen windows
4 years ago
Dan Walmsley
3600639d39
re-create NSWindow if we call show and need to swap out for a dialog.
4 years ago
Dan Walmsley
99e07e68d5
remove unnecessary cast.
4 years ago
Dan Walmsley
d6a4a6c901
ensure cast to protocol instead of concrete types.
4 years ago
Dan Walmsley
1cca34f56e
actually create nspanels for dialogs.
4 years ago
Dan Walmsley
f008e403cf
make it compile 2 versions is AvnWindow (NSWindow / NSPanel version)
fix include mess, and pragma once.
4 years ago
Dan Walmsley
8be332ab1d
make AvnWindowProtocol
4 years ago
Dan Walmsley
0ee1a7e391
add explanation for init with content size.
4 years ago
Dan Walmsley
4cba4519f3
only create the NSWindow when show is called. Cache sizes until needed.
4 years ago
Dan Walmsley
3aab84d8da
remove some imports no longer needed.
4 years ago
Dan Walmsley
f19639684d
move AutoFitContentView to its own file.
4 years ago
Dan Walmsley
4892352db5
move avnview to its own file.
4 years ago
Dan Walmsley
68b4173743
remove unused window code.
4 years ago
Dan Walmsley
e2b76313b7
further seperate out files.
4 years ago
Dan Walmsley
2cf78ac11c
move IWindowBaseImpl to its own file.
4 years ago
Lubomir Tetak
bf61dd9a1e
macos - disable native menus completely
4 years ago
Dariusz Komosinski
628ae788e4
Fix PointToClient not working on macOS.
4 years ago
Dan Walmsley
4b5e86c72d
[OSX] reset maximised state when window is dragged.
4 years ago
Giuseppe Lippolis
9670acd709
fixes(OSX): convertBaseToScreen:' is deprecated: first deprecated in macOS 10.7
4 years ago
Mike Irving
a529ae88d5
Grammatical corrections to product names: XCode -> Xcode, .Net -> .NET, Javascript -> JavaScript, MacOS -> macOS, MacOs -> macOS
4 years ago
Dan Walmsley
54e4f13ea6
Revert "[OSX] fix resize calls before window shown."
This reverts commit 06807324d0 .
4 years ago
Dan Walmsley
0a65e0a50d
forcefully invalidate shadow.
4 years ago
Dan Walmsley
06807324d0
[OSX] fix resize calls before window shown.
4 years ago