Fixed bug that created new instance of ScreenImpl every time it was accessed through WindowBaseImpl
@@ -342,7 +342,10 @@ namespace Avalonia.Gtk3
Native.GtkWindowResize(GtkWidget, (int)value.Width, (int)value.Height);
}
- public IScreenImpl Screen { get; } = new ScreenImpl();
+ public IScreenImpl Screen
+ {
+ get;
+ } = new ScreenImpl();
public Point Position
{
@@ -153,7 +153,10 @@ namespace Avalonia.MonoMac
Position = pos;
public override Point PointToClient(Point point)
@@ -103,7 +103,11 @@ namespace Avalonia.Win32
- public IScreenImpl Screen => new ScreenImpl();
+
public IRenderer CreateRenderer(IRenderRoot root)