Tell to mpv don't get mouse events

In x11, mpv takes the mouse events for itself, so the SE UI doesn't respond to mouse interactions in the PanelPlayer. With this change, the UI responds to events correctly
This commit is contained in:
Lucas 2024-04-17 18:56:07 -03:00 committed by GitHub
parent d70939e50b
commit fcf88b2e0a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -691,6 +691,13 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers
var logFileName = Path.Combine(Configuration.DataDirectory, "mpv-log-" + Guid.NewGuid() + ".txt");
_mpvSetOptionString(_mpvHandle, GetUtf8Bytes("log-file"), GetUtf8Bytes(logFileName));
}
if (_mpvSetOptionString(_mpvHandle, GetUtf8Bytes("input-cursor-passthrough"), GetUtf8Bytes("yes")) != 0)
{
// if --input-cursor-passthrough=yes is not avaliable, use --input-cursor=no
_mpvSetOptionString(_mpvHandle, GetUtf8Bytes("input-cursor"), GetUtf8Bytes("no"));
}
}
else if (!Directory.Exists(videoFileName))
{