Skip to content

Commit

Permalink
Changed: Move CursorFactory Back to its Place
Browse files Browse the repository at this point in the history
  • Loading branch information
Sewer56 committed Jun 14, 2024
1 parent 8038127 commit cf30995
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Avalonia.X11/X11Platform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ public void Initialize(X11PlatformOptions options)
.Bind<PlatformHotkeyConfiguration>().ToConstant(new PlatformHotkeyConfiguration(KeyModifiers.Control))
.Bind<KeyGestureFormatInfo>().ToConstant(new KeyGestureFormatInfo(new Dictionary<Key, string>() { }, meta: "Super"))
.Bind<IKeyboardDevice>().ToFunc(() => KeyboardDevice)
.Bind<ICursorFactory>().ToConstant(new X11CursorFactory(Display))
.Bind<IClipboard>().ToConstant(new X11Clipboard(this))
.Bind<IPlatformSettings>().ToSingleton<DBusPlatformSettings>()
.Bind<IPlatformIconLoader>().ToConstant(new X11IconLoader())
Expand All @@ -101,8 +102,6 @@ public void Initialize(X11PlatformOptions options)
if (xi2.Init(this))
XI2 = xi2;
}

AvaloniaLocator.CurrentMutable.Bind<ICursorFactory>().ToConstant(new X11CursorFactory(Display));

var graphics = graphicsTask.Result;
if (graphics is not null)
Expand Down

0 comments on commit cf30995

Please sign in to comment.