app: added support for fullscreen mode

The option field WindowMode allows changing the window mode of an application in either Windowed or Fullscreen.
Only macOS, Windows and X11 platforms are currently supported.

Updates gio#89.

Signed-off-by: pierre <pierre.curto@gmail.com>
This commit is contained in:
pierre
2021-03-23 15:39:25 +01:00
committed by Elias Naur
parent bc2c3db43e
commit 238dd1aa86
7 changed files with 171 additions and 1 deletions
+16
View File
@@ -444,6 +444,22 @@ func (q *queue) Events(k event.Tag) []event.Event {
return q.q.Events(k)
}
const (
// Windowed is the normal window mode with OS specific window decorations.
Windowed = wm.Windowed
// Fullscreen is the full screen window mode.
Fullscreen = wm.Fullscreen
)
// WindowMode sets the window mode.
//
// Supported platforms are macOS, X11 and Windows.
func WindowMode(mode wm.WindowMode) Option {
return func(opts *wm.Options) {
opts.WindowMode = mode
}
}
// Title sets the title of the wm.
func Title(t string) Option {
return func(opts *wm.Options) {