mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 12:15:37 +00:00
[X11] Fixed cursor position when CursorVisible becomes true
This commit is contained in:
parent
fc718026fd
commit
7e3b99c636
|
@ -1499,6 +1499,10 @@ namespace OpenTK.Platform.X11
|
|||
{
|
||||
using (new XLock(window.Display))
|
||||
{
|
||||
Point p = PointToScreen(new Point(MouseState.X, MouseState.Y));
|
||||
Mouse.SetPosition(p.X, p.Y);
|
||||
Functions.XFlush(window.Display);
|
||||
|
||||
// Note: if cursorHandle = IntPtr.Zero, this function
|
||||
// is equivalent to XUndefineCursor.
|
||||
Functions.XDefineCursor(window.Display, window.Handle, cursorHandle);
|
||||
|
|
Loading…
Reference in a new issue