app/internal/wm: use Option method to initialize windows

Added (*w.window).Option methods to the backends and use them for setting the initial options passed into NewWindow.

Signed-off-by: pierre <pierre.curto@gmail.com>
This commit is contained in:
pierre
2021-04-02 19:23:17 +02:00
committed by Elias Naur
parent b77c1628f3
commit ce7f0da06e
10 changed files with 207 additions and 110 deletions
+2
View File
@@ -239,6 +239,8 @@ func (w *window) WriteClipboard(s string) {
})
}
func (w *window) Option(opts *Options) {}
func (w *window) SetAnimating(anim bool) {
v := w.view
if v == 0 {