mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
app: note the implications of custom rendering
Small note to make clear how the window behaviour changes when you call for custom rendering. Fixes: https://todo.sr.ht/~eliasnaur/gio/346 Signed-off-by: Jack Mordaunt <jackmordaunt.dev@gmail.com>
This commit is contained in:
committed by
Elias Naur
parent
9f1d6f5ebf
commit
4f9d063e13
@@ -827,6 +827,10 @@ func NavigationColor(color color.NRGBA) Option {
|
||||
|
||||
// CustomRenderer controls whether the window contents is
|
||||
// rendered by the client. If true, no GPU context is created.
|
||||
//
|
||||
// Caller must assume responsibility for rendering which includes
|
||||
// initializing the render backend, swapping the framebuffer and
|
||||
// handling frame pacing.
|
||||
func CustomRenderer(custom bool) Option {
|
||||
return func(_ unit.Metric, cnf *Config) {
|
||||
cnf.CustomRenderer = custom
|
||||
|
||||
Reference in New Issue
Block a user