Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No border and maximised windows issues #32

Closed
diana7127 opened this issue Feb 15, 2023 · 2 comments
Closed

No border and maximised windows issues #32

diana7127 opened this issue Feb 15, 2023 · 2 comments
Labels
question Further information is requested

Comments

@diana7127
Copy link

你好,我下载了最新版的implay,并在mpv.conf里写入no-border和border=0,但打开软件依旧会有border;另外,我想一打开视频,就默认显示最大化窗口,请问怎么操作呢?谢谢

@diana7127 diana7127 added the question Further information is requested label Feb 15, 2023
@tsl0922
Copy link
Owner

tsl0922 commented Feb 16, 2023

什么操作系统,请填写下 issue 模板。

no-border 是支持的。打开视频窗口大小会自动调整为视频大小,这个暂时还没有选项关闭。另外,参考 #27

@hooke007
Copy link

hooke007 commented Feb 16, 2023

一打开视频,就默认显示最大化窗口

A temporary workaround (mpv Lua script).

local init_max = false

function on_file_load()
	if init_max then
		return
	end
	mp.add_timeout(0.5, function()
		mp.commandv("set", "window-maximized", "yes")
		init_max = true
	end)
end

if not init_max then
	mp.register_event("file-loaded", on_file_load)
else
	return
end

@tsl0922 tsl0922 closed this as completed Mar 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants