|
|
@ -14,7 +14,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_arrow}, |
|
|
{StandardCursorType.Arrow, CursorFontShape.XC_top_left_arrow}, |
|
|
{StandardCursorType.Cross, CursorFontShape.XC_cross}, |
|
|
{StandardCursorType.Cross, CursorFontShape.XC_cross}, |
|
|
{StandardCursorType.Hand, CursorFontShape.XC_hand1}, |
|
|
{StandardCursorType.Hand, CursorFontShape.XC_hand1}, |
|
|
{StandardCursorType.Help, CursorFontShape.XC_question_arrow}, |
|
|
{StandardCursorType.Help, CursorFontShape.XC_question_arrow}, |
|
|
@ -50,7 +50,7 @@ namespace Avalonia.X11 |
|
|
{ |
|
|
{ |
|
|
var handle = s_mapping.TryGetValue(cursorType, out var shape) |
|
|
var handle = s_mapping.TryGetValue(cursorType, out var shape) |
|
|
? _cursors[shape] |
|
|
? _cursors[shape] |
|
|
: _cursors[CursorFontShape.XC_arrow]; |
|
|
: _cursors[CursorFontShape.XC_top_left_arrow]; |
|
|
return new PlatformHandle(handle, "XCURSOR"); |
|
|
return new PlatformHandle(handle, "XCURSOR"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|