From 4f9d063e1386df28c2ec5744b9ca8b8b942843bc Mon Sep 17 00:00:00 2001 From: Jack Mordaunt Date: Sun, 30 Jan 2022 14:25:29 +0800 Subject: [PATCH] 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 --- app/window.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/window.go b/app/window.go index 79899bfb..f958f848 100644 --- a/app/window.go +++ b/app/window.go @@ -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