mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-25 04:33:04 +01:00
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:
parent
d70939e50b
commit
fcf88b2e0a
@ -691,6 +691,13 @@ namespace Nikse.SubtitleEdit.Logic.VideoPlayers
|
|||||||
var logFileName = Path.Combine(Configuration.DataDirectory, "mpv-log-" + Guid.NewGuid() + ".txt");
|
var logFileName = Path.Combine(Configuration.DataDirectory, "mpv-log-" + Guid.NewGuid() + ".txt");
|
||||||
_mpvSetOptionString(_mpvHandle, GetUtf8Bytes("log-file"), GetUtf8Bytes(logFileName));
|
_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))
|
else if (!Directory.Exists(videoFileName))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user