about summary refs log tree commit diff stats
path: root/src/server/buffer.nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/buffer.nim')
-rw-r--r--src/server/buffer.nim29
1 files changed, 14 insertions, 15 deletions
diff --git a/src/server/buffer.nim b/src/server/buffer.nim
index 3012c639..ea6a0d94 100644
--- a/src/server/buffer.nim
+++ b/src/server/buffer.nim
@@ -884,7 +884,6 @@ proc processData(buffer: Buffer; iq: openArray[uint8]): bool =
 proc windowChange*(buffer: Buffer; attrs: WindowAttributes) {.proxy.} =
   buffer.attrs = attrs
   buffer.prevStyled = nil
-  buffer.window.attrs = attrs
   buffer.reshape()
 
 type UpdateHoverResult* = object
@@ -1934,20 +1933,20 @@ proc launchBuffer*(config: BufferConfig; url: URL; attrs: WindowAttributes;
     charsetStack: charsetStack,
     cacheId: -1,
     outputId: -1,
-    factory: factory,
-    window: newWindow(
-      config.scripting,
-      config.images,
-      config.styling,
-      config.autofocus,
-      attrs,
-      factory,
-      loader,
-      url,
-      urandom,
-      config.imageTypes,
-      config.userAgent
-    )
+    factory: factory
+  )
+  buffer.window = newWindow(
+    config.scripting,
+    config.images,
+    config.styling,
+    config.autofocus,
+    addr buffer.attrs,
+    factory,
+    loader,
+    url,
+    urandom,
+    config.imageTypes,
+    config.userAgent
   )
   if buffer.config.scripting != smFalse:
     buffer.window.navigate = proc(url: URL) = buffer.navigate(url)