zserge / lorca

Build cross-platform modern desktop apps in Go + HTML5
MIT License
8.04k stars 535 forks source link

How to remove black X circle when in fullscreen mode? #132

Open jordan-lumley opened 4 years ago

jordan-lumley commented 4 years ago

Hi all,

Been using lorca for a couple of weeks now for a desktop application running on the raspberry PI. I know there is a couple of things in terms of control we have or dont have in regards to window control as its using the browser on the client machine but is there anyway to remove the fullscreen black X circle at the top of the screen? When in fullscreen mode in chrome/chromium, you hover your mouse to the top of the screen, it brings down an exit button.

deeyi commented 3 years ago
var d lorca.Bounds
d.WindowState="maximized"
ui.SetBounds(d)
phanirithvij commented 3 years ago

@jordan-lumley It is impossible as of now https://stackoverflow.com/a/65223193/8608146.

But the only workaround is passing --kiosk flag when running the browser i.e.

lorca.New(url, dir, width, height, "--kiosk")

But it will change some other stuff like disables right-click, and more.