Dan Walmsley
563c29b165
[OSX] fix non-client click detection causing crash on popups.
4 years ago
Dan Walmsley
fbfc1e4eb0
restore osx window shadow fix.
4 years ago
Dan Walmsley
a3dc8ca85b
osx - handle restoring arrow cursor if app set non-standard cursor at edge of client area.
5 years ago
Dan Walmsley
e775ce4b0d
add missing START_COM_CALL
5 years ago
Dan Walmsley
b8059ef35f
implement non-client clicks on osx.
5 years ago
Dan Walmsley
daddc71372
remove trayicon events from osx.
5 years ago
Dan Walmsley
a3c8396cf5
Tray icon osx, implement visibility toggle and lifetime management.
5 years ago
Dan Walmsley
0e703c9209
Add trayicon menu export support for osx.
5 years ago
Dan Walmsley
6ae59214a4
add initial implementation for osx tray icon support.
5 years ago
Dan Walmsley
846cdb4112
correctly implement fullscreen mode so that app ca be started in fullscreen.
5 years ago
Sergey Mikolaytis
9682f014b2
[OSX] fix middle button #5784
5 years ago
Sergey Mikolaytis
29f4806cfd
[OSX] [Native] fix tab shortcuts in NativeMenu
5 years ago
Steven Kirk
24c8af1b62
Manually restore parent windows before showing child.
5 years ago
Steven Kirk
346015d804
Call WindowStateChanged when setting WindowState via code.
Fixes #6399
5 years ago
Steven Kirk
f589965b2d
OSX: Fix showing window with no specified size.
A Window without a `Width`/`Height` specified was not getting shown on OSX since 1f8b909257 . Set the content view in the constructor to fix this.
5 years ago
Steven Kirk
ba369a9059
Fix auto-scaling on win32.
- Adds a "resize reason" to platform `Resized` events
- Which is used by the auto-sizing code to determine whether to reset `SizeToContent`
- Also other improvements to the reset logic for `SizeToContent`:
- Don't reset it if the size hasn't changed
- Don't reset it if `CanResize == false`
- Only reset the dimensions whose size has changed
- Obsolete the `BeginAutoSizing`/`AutoSizing` feature in `WindowBase`
5 years ago
Dan Walmsley
b2c95a10c5
add a try finally.
5 years ago
Dan Walmsley
47006ff110
add missing COM retainer.
5 years ago
Dan Walmsley
11c2a0f5f4
restore change.
5 years ago
Dan Walmsley
a28ffc08a3
whitespace.
5 years ago
Dan Walmsley
1f8b909257
fix flicker... make nswindow handle the content resizing automatically.
5 years ago
Dan Walmsley
1a0780a7a4
prevent recursive calls during resize.
5 years ago
Dan Walmsley
2433435ac9
OSX - window state - keep field in sync.
5 years ago
Dan Walmsley
bac825c999
destroyed, not destructed.
5 years ago
Dan Walmsley
927fd90d86
add documentation about START_COM_CALL.
5 years ago
Dan Walmsley
9da6a28b51
fix
5 years ago
Dan Walmsley
f053bfef3a
macro and add self pointer retaining to all COM calls.
5 years ago
Steven Kirk
ec85bf14e6
Call makeFirstResponder when showing window.
This is needed in order for the view to receive keyboard events immediately after showing the window.
Fixes #6202
5 years ago
Dan Walmsley
57440e9d36
retain self (this)
5 years ago
Dan Walmsley
8058a46d26
prevent osx crash when closing inside activate.
5 years ago
Dan Walmsley
f9824007e1
add a method to retain com object during com calls.
5 years ago
Steven Kirk
32c0eac415
Prevent dialog parent from becoming key window.
5 years ago
Steven Kirk
091ffe5fa8
Remove activateAppropriateChild logic.
It was causing both parent and child windows to think they were the key window at the same time and it's not really needed anymore since the implementation of real child windows as far as I can see.
5 years ago
Steven Kirk
bf210cb5f4
Call terminate from Quit menu.
Unifies the closing logic between clicking on the icon menu Quit and the Quit menu.
5 years ago
Steven Kirk
b71743e9a8
Handle applicationShouldTerminate on OSX.
Added some new plumbing to facilitate this:
- A managed event is raised `IPlatformLifetimeEventsImpl.ShutdownRequested`
- This event is subscribed from `ClassicDesktopStyleApplicationLifetime`
- Which tries to close all windows
- And returns false to cancel the OS-level close if not all windows could be closed
5 years ago
Dan Walmsley
f7cc89c86b
fix osx window state logic.
5 years ago
Nathan Garside
d77d1fd5da
Rename to FrameSize
5 years ago
Nathan Garside
9feb2376a0
Squash toplevel-totalsize
5 years ago
Dan Walmsley
a0a039860c
fix shadow ensuring the window frame and avalonia standard container are both resized.
5 years ago
Dan Walmsley
3373849c2b
force osx shadow invalidation on programatic resize.
5 years ago
Dan Walmsley
c42cdebef8
restore code.
5 years ago
Dan Walmsley
92a29820b8
remove redundant if.
5 years ago
Dan Walmsley
a194fc12e2
OSX backend initial sizing now has same behavior as windows.
When window is not shown, and Resize is called, it will trigger a Resize event, that updates ClientSize.
5 years ago
Dan Walmsley
99cdff2d70
fix screen centering on OSX before window has been shown.
5 years ago
Dan Walmsley
30035f3134
set the content before Show is called, so that contentview is set after the size has been set.
5 years ago
Dan Walmsley
a5fb091950
remove shadow invalidation hacks.
5 years ago
Dan Walmsley
4cf49b659a
refactor broken english.
5 years ago
Dan Walmsley
b5efb293ba
trick to make OSX invalidate the shadow.
5 years ago
Dan Walmsley
c39fa50efc
[osx] if app only has an app menu and no window menu, ensure its applied when window is first shown.
5 years ago
Dan Walmsley
0527ae0b64
add null pointer check.
5 years ago