Merge pull request #8216 from Gzushgshsh/main

Fix mouse interactions on the PanelPlayer in x11
This commit is contained in:
Nikolaj Olsson 2024-04-18 18:52:39 +02:00 committed by GitHub
commit 8dfebf36d0
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))
{