|
|
@ -23,7 +23,7 @@ namespace Avalonia.X11 |
|
|
private static readonly Dictionary<StandardCursorType, CursorFontShape> s_mapping = |
|
|
private static readonly Dictionary<StandardCursorType, CursorFontShape> s_mapping = |
|
|
new Dictionary<StandardCursorType, CursorFontShape> |
|
|
new Dictionary<StandardCursorType, CursorFontShape> |
|
|
{ |
|
|
{ |
|
|
{StandardCursorType.Arrow, CursorFontShape.XC_top_left_arrow}, |
|
|
{StandardCursorType.Arrow, CursorFontShape.XC_left_ptr}, |
|
|
{StandardCursorType.Cross, CursorFontShape.XC_cross}, |
|
|
{StandardCursorType.Cross, CursorFontShape.XC_cross}, |
|
|
{StandardCursorType.Hand, CursorFontShape.XC_hand2}, |
|
|
{StandardCursorType.Hand, CursorFontShape.XC_hand2}, |
|
|
{StandardCursorType.Help, CursorFontShape.XC_question_arrow}, |
|
|
{StandardCursorType.Help, CursorFontShape.XC_question_arrow}, |
|
|
@ -67,7 +67,7 @@ namespace Avalonia.X11 |
|
|
{ |
|
|
{ |
|
|
handle = s_mapping.TryGetValue(cursorType, out var shape) |
|
|
handle = s_mapping.TryGetValue(cursorType, out var shape) |
|
|
? _cursors[shape] |
|
|
? _cursors[shape] |
|
|
: _cursors[CursorFontShape.XC_top_left_arrow]; |
|
|
: _cursors[CursorFontShape.XC_left_ptr]; |
|
|
} |
|
|
} |
|
|
return new CursorImpl(handle); |
|
|
return new CursorImpl(handle); |
|
|
} |
|
|
} |
|
|
|