Skip to content

Commit 88ac54b

Browse files
committed
osc.lua: hide osc or wc when leaving its area
Those zones use input sections, but in OSC we allow them to overlap. So, we might switch to the other section, after which point we won't get mouse_leave event that would hide the bar for the other section. This makes hidding/showing WC and OSC more consistent.
1 parent 3ff7b04 commit 88ac54b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

player/lua/osc.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2413,8 +2413,8 @@ local function process_event(source, what)
24132413
)
24142414
) then
24152415
if window_controls_enabled() and user_opts.windowcontrols_independent then
2416-
if mouse_in_area("showhide_wc") then show_wc() end
2417-
if mouse_in_area("showhide") then show_osc() end
2416+
if mouse_in_area("showhide_wc") then show_wc() else hide_wc() end
2417+
if mouse_in_area("showhide") then show_osc() else hide_osc() end
24182418
else
24192419
show_osc()
24202420
if window_controls_enabled() then show_wc() end

0 commit comments

Comments
 (0)