Skip to content

Commit 5ecfe26

Browse files
committed
osc.lua: fix window controls not showing in fullscreen
1 parent 88ac54b commit 5ecfe26

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

DOCS/man/osc.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,8 @@ Configurable Options
404404
render OSD into the unscaled video.
405405

406406
``windowcontrols``
407-
Default: auto (Show window controls if there is no window border)
407+
Default: auto (Show window controls if there is no window border/title-bar or
408+
in the fullscreen mode.)
408409

409410
Whether to show window management controls over the video, and if so,
410411
which side of the window to place them. This may be desirable when the

player/lua/osc.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ end
650650
local function window_controls_enabled()
651651
local val = user_opts.windowcontrols
652652
if val == "auto" then
653-
return not (state.border and state.title_bar)
653+
return state.fullscreen or not state.border or not state.title_bar
654654
else
655655
return val ~= "no"
656656
end

0 commit comments

Comments
 (0)