You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Window dragging doesnât work on OS X until the OSC has been activated at least once #1819
Window dragging from anywhere (i.e. by dragging the video being displayed as opposed to the top bar) does not work on OS X if the on-screen display hasnât been available at least once.
So if for example the showwindowed=no option is set and we open a video in windowed mode, window dragging will be unavailable until the video is made fullscreen at least once. By this I mean that when opening the video it wonât work at all, but if we quickly go in and out of fullscreen, then it starts working for the duration of the video.
Reproducible both with --script-opts=osc-showwindowed=no and in ~/.mpv/lua-settings/osc.conf.
If we completely disable the on-screen display in both cases (--script-opts=osc-showwindowed=no,osc-showfullscreen=no, or by setting both options in ~/.mpv/lua-settings/osc.conf), then window dragging wonât work at all.
Currently on mpv version 0.9.2, installed via homebrew with no specified flags, from the official repo. OS X Yosemite 10.10.3.
Could you test with HEAD? Dragging works for me (always did). Probably try with --no-config too and try to identify the problematic option in case it works.
changed the title [-]Window dragging doesnât work correctly on OSX[/-][+]Window dragging doesnât work correctly on OS X when using showwindowed=no[/+]on Apr 14, 2015
What it does is create a .mpv/scripts directory, if it didnât exist, in your home. It then creates a cycle_fullscreen_twice.lua file inside it with the contents
@wm4 Should be --script-opts=osc-showwindowed=no instead. The osc- prefix was left out before (not sure if I just forgot to write it or if the requirement came after the issue was opened).
changed the title [-]Window dragging doesnât work correctly on OS X when using showwindowed=no[/-][+]Window dragging doesnât work on OS X until the OSC has been activated at least once[/+]on Jun 3, 2015
@wm4 Actually, looking further into it, it appears the issue can be more accurately described as âwindow dragging doesnât work on OS X until the OSC has been activated at least onceâ. Iâve updated the title and top post to reflect that.
i investigated the issue and the problem is that the function mp_input_test_dragging used in recalcMovableByWindowBackground always returns true, when used with --script-opts=osc-showwindowed=no. it should return false in that case. there seems to be a mouse area active in the OSC which leads to this problem. when cycling the visibility options of the OSC (O script_message osc-visibility cycle) to 'never' an area seem to be properly set and the function returns the right value as expected.
Activity
Argon- commentedon Apr 14, 2015
Could you test with HEAD? Dragging works for me (always did). Probably try with
--no-configtoo and try to identify the problematic option in case it works.Nyx0uf commentedon Apr 14, 2015
Same here, works perfectly (tried with my config and with --no-config)
ArPrt93 commentedon Apr 14, 2015
Same, it works as expected here (10.10.3, HEAD mpv).
vitorgalvao commentedon Apr 14, 2015
Found the culprit: itâs the
showwindowed=nooption. Reproducible both with--script-opts=showwindowed=noand in~/.mpv/lua-settings/osc.conf.[-]Window dragging doesnât work correctly on OSX[/-][+]Window dragging doesnât work correctly on OS X when using showwindowed=no[/+]Argon- commentedon Apr 14, 2015
You are right, I can reproduce it as well.
vitorgalvao commentedon Apr 29, 2015
Still happens in
0.9.0. Updated top comment to reflect that.vitorgalvao commentedon Jun 2, 2015
Thereâs a really ugly hack to work around this. Simply execute the following line.
What it does is create a
.mpv/scriptsdirectory, if it didnât exist, in your home. It then creates acycle_fullscreen_twice.luafile inside it with the contentswhich basically just makes mpv toggle fullscreen twice when opening a file.
vitorgalvao commentedon Jun 3, 2015
Actually, scratch that, as it causes other problems and may even hang mpv.
vitorgalvao commentedon Jun 3, 2015
@wm4 Should be
--script-opts=osc-showwindowed=noinstead. Theosc-prefix was left out before (not sure if I just forgot to write it or if the requirement came after the issue was opened).[-]Window dragging doesnât work correctly on OS X when using showwindowed=no[/-][+]Window dragging doesnât work on OS X until the OSC has been activated at least once[/+]vitorgalvao commentedon Jun 3, 2015
@wm4 Actually, looking further into it, it appears the issue can be more accurately described as âwindow dragging doesnât work on OS X until the OSC has been activated at least onceâ. Iâve updated the title and top post to reflect that.
Akemi commentedon Dec 12, 2016
i investigated the issue and the problem is that the function mp_input_test_dragging used in recalcMovableByWindowBackground always returns true, when used with
--script-opts=osc-showwindowed=no. it should return false in that case. there seems to be a mouse area active in the OSC which leads to this problem. when cycling the visibility options of the OSC (O script_message osc-visibility cycle) to 'never' an area seem to be properly set and the function returns the right value as expected.so this isn't an OSX bug per se.
osc: fix window dragging with showwindowed=no