often the OSC was shown when fullscreen was entered
This commit is contained in:
@@ -1,4 +1,6 @@
|
|||||||
|
|
||||||
|
- fix: often the OSC was shown when fullscreen was entered
|
||||||
|
|
||||||
### 5.4.3.0
|
### 5.4.3.0
|
||||||
|
|
||||||
- new: the color themes can now be customized ([manual](https://github.com/stax76/mpv.net/blob/master/Manual.md#color-theme))
|
- new: the color themes can now be customized ([manual](https://github.com/stax76/mpv.net/blob/master/Manual.md#color-theme))
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ using System.ComponentModel;
|
|||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
using UI;
|
using UI;
|
||||||
|
|
||||||
namespace mpvnet
|
namespace mpvnet
|
||||||
@@ -23,7 +24,8 @@ namespace mpvnet
|
|||||||
int LastCursorChangedTickCount;
|
int LastCursorChangedTickCount;
|
||||||
int TaskbarButtonCreatedMessage;
|
int TaskbarButtonCreatedMessage;
|
||||||
bool WasShown;
|
bool WasShown;
|
||||||
Taskbar Taskbar;
|
DateTime LastCycleFullscreen;
|
||||||
|
Taskbar Taskbar;
|
||||||
List<string> RecentFiles;
|
List<string> RecentFiles;
|
||||||
|
|
||||||
public MainForm()
|
public MainForm()
|
||||||
@@ -344,6 +346,7 @@ namespace mpvnet
|
|||||||
|
|
||||||
public void CycleFullscreen(bool enabled)
|
public void CycleFullscreen(bool enabled)
|
||||||
{
|
{
|
||||||
|
LastCycleFullscreen = DateTime.Now;
|
||||||
mp.Fullscreen = enabled;
|
mp.Fullscreen = enabled;
|
||||||
|
|
||||||
if (enabled)
|
if (enabled)
|
||||||
@@ -469,9 +472,14 @@ namespace mpvnet
|
|||||||
break;
|
break;
|
||||||
case 0x0200: // WM_MOUSEMOVE
|
case 0x0200: // WM_MOUSEMOVE
|
||||||
{
|
{
|
||||||
Point pos = PointToClient(Cursor.Position);
|
if ((DateTime.Now - LastCycleFullscreen).TotalMilliseconds > 100)
|
||||||
mp.command($"mouse {pos.X} {pos.Y}");
|
{
|
||||||
if (CursorHelp.IsPosDifferent(LastCursorPosChanged)) CursorHelp.Show();
|
Point pos = PointToClient(Cursor.Position);
|
||||||
|
mp.command($"mouse {pos.X} {pos.Y}");
|
||||||
|
}
|
||||||
|
|
||||||
|
if (CursorHelp.IsPosDifferent(LastCursorPosChanged))
|
||||||
|
CursorHelp.Show();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 0x2a3: // WM_MOUSELEAVE
|
case 0x2a3: // WM_MOUSELEAVE
|
||||||
|
|||||||
Reference in New Issue
Block a user