From a4c3154dab62db89bfb827320aced13b4a6ef8f4 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 20 Aug 2022 08:27:24 +0530 Subject: [PATCH] ... --- kitty/window.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kitty/window.py b/kitty/window.py index 3140ee38e..b797db4c8 100644 --- a/kitty/window.py +++ b/kitty/window.py @@ -625,7 +625,7 @@ class Window: ) def serialize_state(self) -> Dict[str, Any]: - return { + ans = { 'version': 1, 'id': self.id, 'child_title': self.child_title, @@ -640,6 +640,9 @@ class Window: 'margin': self.margin.serialize(), 'padding': self.padding.serialize(), } + if self.window_custom_type: + ans['window_custom_type'] = self.window_custom_type + return ans @property def current_colors(self) -> Dict[str, Optional[int]]: