mirror of
https://github.com/m1k1o/neko.git
synced 2025-08-03 00:39:56 +02:00
change screen size only on desktop.
This commit is contained in:
parent
b0ae758d7b
commit
a8173ce02f
11 changed files with 90 additions and 62 deletions
3
neko.go
3
neko.go
|
@ -62,6 +62,7 @@ func init() {
|
|||
},
|
||||
Configs: &Configs{
|
||||
Root: &config.Root{},
|
||||
Desktop: &config.Desktop{},
|
||||
Capture: &config.Capture{},
|
||||
WebRTC: &config.WebRTC{},
|
||||
Session: &config.Session{},
|
||||
|
@ -101,6 +102,7 @@ func (i *Version) Details() string {
|
|||
|
||||
type Configs struct {
|
||||
Root *config.Root
|
||||
Desktop *config.Desktop
|
||||
Capture *config.Capture
|
||||
WebRTC *config.WebRTC
|
||||
Session *config.Session
|
||||
|
@ -128,6 +130,7 @@ func (neko *Neko) Preflight() {
|
|||
func (neko *Neko) Start() {
|
||||
neko.desktopManager = desktop.New(
|
||||
neko.Configs.Capture.Display,
|
||||
neko.Configs.Desktop,
|
||||
)
|
||||
neko.desktopManager.Start()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue