veandco / go-sdl2

SDL2 binding for Go
https://godoc.org/github.com/veandco/go-sdl2
BSD 3-Clause "New" or "Revised" License
2.17k stars 219 forks source link

sdl: add missing HINT_VIDEODRIVER hint #588

Closed gamelaster closed 5 months ago

gamelaster commented 5 months ago

This hint is needed to force Wayland over X11.

Usage:

    sdl.SetHint(sdl.HINT_VIDEODRIVER, "wayland,x11")
    if err := sdl.Init(sdl.INIT_EVERYTHING); err != nil {
        panic(err)
    }
    defer sdl.Quit()
veeableful commented 5 months ago

Thank you @gamelaster!