Skip to content

Commit

Permalink
Manual backport of WindowImpl 11.0 changes
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkatz6 committed Feb 23, 2024
1 parent 426d0f1 commit 9fcf022
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions src/Windows/Avalonia.Win32/PopupImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,13 @@ public PopupImpl(IWindowBaseImpl parent) : this(SaveParentHandle(parent), false)

private PopupImpl(IWindowBaseImpl parent, bool dummy)
{
_windowProperties = new WindowProperties
{
ShowInTaskbar = false,
IsResizable = false,
Decorations = SystemDecorations.None,
};

_parent = parent;
PopupPositioner = new ManagedPopupPositioner(new ManagedPopupPositionerPopupImplHelper(parent, MoveResize));
}
Expand Down
4 changes: 2 additions & 2 deletions src/Windows/Avalonia.Win32/WindowImpl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ internal partial class WindowImpl : IWindowImpl, EglGlPlatformSurface.IEglWindow
private string? _className;
private IntPtr _hwnd;
private IInputRoot? _owner;
private WindowProperties _windowProperties;
protected WindowProperties _windowProperties;
private bool _trackingMouse;//ToDo - there is something missed. Needs investigation @Steven Kirk
private bool _topmost;
private double _scaling = 1;
Expand Down Expand Up @@ -1481,7 +1481,7 @@ private struct SavedWindowInfo
public RECT WindowRect { get; set; }
};

private struct WindowProperties
protected struct WindowProperties
{
public bool ShowInTaskbar;
public bool IsResizable;
Expand Down

0 comments on commit 9fcf022

Please sign in to comment.