Skip to content

Commit 76b01c8

Browse files
Merge pull request #61 from FPurchess/leave-fullscreen-and-kiosk
extended window bindings with a way to leave fullscreen / kiosk mode
2 parents 2f2cfec + 95b229f commit 76b01c8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/bindings/window/window.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -284,22 +284,22 @@ func (w *Window) UnFocus() {
284284
w.CallWhenDisplayed(&command)
285285
}
286286

287-
func (w *Window) Fullscreen() {
287+
func (w *Window) Fullscreen(fullscreen bool) {
288288
command := Command{
289289
Method: "set_fullscreen",
290290
Args: CommandArguments{
291-
Fullscreen: true,
291+
Fullscreen: fullscreen,
292292
},
293293
}
294294

295295
w.CallWhenDisplayed(&command)
296296
}
297297

298-
func (w *Window) Kiosk() {
298+
func (w *Window) Kiosk(kiosk bool) {
299299
command := Command{
300300
Method: "set_kiosk",
301301
Args: CommandArguments{
302-
Kiosk: true,
302+
Kiosk: kiosk,
303303
},
304304
}
305305

0 commit comments

Comments
 (0)