Skip to content

Commit 0d8978a

Browse files
committed
fix(Avalonia): ensure region selector is ran on load not init
1 parent 1d9d38a commit 0d8978a

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

SnapX.Avalonia/Views/RegionSelectorWindow.axaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,16 @@
44
Closed="OnClosed"
55
Cursor="Hand"
66
Focusable="True"
7-
Initialized="OnInit"
87
KeyDown="OnKeyDown"
98
KeyUp="OnKeyDown"
9+
Loaded="OnInit"
1010
LostFocus="OnLostFocus"
1111
PointerMoved="OnPointerMoved"
1212
PointerPressed="OnPointerPressed"
1313
PointerReleased="OnPointerReleased"
1414
ShowInTaskbar="False"
1515
SystemDecorations="None"
1616
Title="RegionSelectorWindow"
17-
Topmost="True"
1817
WindowState="FullScreen"
1918
d:DesignHeight="450"
2019
d:DesignWidth="800"

SnapX.Avalonia/Views/RegionSelectorWindow.axaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ private void OnKeyDown(object? sender, KeyEventArgs e)
300300
}
301301
private readonly Dictionary<Window, WindowBase?> _ownershipMap = new();
302302

303-
private async void OnInit(object? Sender, EventArgs EventArgs)
303+
private async void OnInit(object? Sender, RoutedEventArgs EventArgs)
304304
{
305305
if (!IsSilentMode)
306306
{

0 commit comments

Comments
 (0)