This commit is contained in:
Frank Skare
2019-04-13 03:05:07 +02:00
parent b93972c7f7
commit 7db8a1e534
3 changed files with 5 additions and 5 deletions

View File

@@ -70,6 +70,10 @@ https://github.com/stax76/mpv.net/wiki/Scripting-(CSharp,-Python,-JavaScript,-Lu
### Changelog
### 2.9 (2019-
- clicking the right top corner in fullscreen mode closes the player but it did not work on all displays
### 2.8 (2019-04-12)
- Win 7 dark-mode render issue fix

View File

@@ -378,11 +378,7 @@ namespace mpvnet
Native.PostMessage(Handle, 0xA1 /* WM_NCLBUTTONDOWN */, HTCAPTION, IntPtr.Zero);
}
var sb = Screen.FromControl(this).Bounds;
var p1 = new Point(sb.Width, 0);
var p2 = PointToScreen(e.Location);
if (Math.Abs(p1.X - p2.X) < 10 && Math.Abs(p1.Y - p2.Y) < 10)
if (Width - e.Location.X < 10 && e.Location.Y < 10)
mp.commandv("quit");
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 214 KiB

After

Width:  |  Height:  |  Size: 150 KiB