From 4febca257ff79fdafcca94f776d5f56d4c342d0d Mon Sep 17 00:00:00 2001 From: stax76 Date: Mon, 4 Jul 2022 08:32:53 +0200 Subject: [PATCH] properly fix OSC hide behavior --- src/WinForms/MainForm.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/WinForms/MainForm.cs b/src/WinForms/MainForm.cs index 17a1d7a..54e149c 100644 --- a/src/WinForms/MainForm.cs +++ b/src/WinForms/MainForm.cs @@ -860,6 +860,7 @@ namespace mpvnet case 0x20b: // WM_XBUTTONDOWN case 0x20c: // WM_XBUTTONUP case 0x20e: // WM_MOUSEHWHEEL + case 0x2a3: // WM_MOUSELEAVE if (mpvWindowHandle == IntPtr.Zero) mpvWindowHandle = FindWindowEx(Handle, IntPtr.Zero, "mpv", null); @@ -894,10 +895,6 @@ namespace mpvnet if (CursorHelp.IsPosDifferent(LastCursorPosition)) CursorHelp.Show(); break; - case 0x2a3: // WM_MOUSELEAVE - //osc won't auto hide after mouse left window in borderless mode - Core.Command($"mouse {ClientSize.Width / 2} {ClientSize.Height / 3}"); - break; case 0x203: // WM_LBUTTONDBLCLK { Point pos = PointToClient(Cursor.Position);