From 3d4c226c2872ab9576533cf514c8f1bf81885471 Mon Sep 17 00:00:00 2001 From: Sergey Miroshnichenko Date: Sat, 30 Mar 2024 23:49:48 +0300 Subject: [PATCH] [negwm] change configured_internally default behaviour --- negwm/modules/circle.py | 3 +-- negwm/modules/scratchpad.py | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/negwm/modules/circle.py b/negwm/modules/circle.py index 1834000..25049aa 100644 --- a/negwm/modules/circle.py +++ b/negwm/modules/circle.py @@ -44,8 +44,7 @@ def initialize(self, i3): self.current_win = i3tree.find_focused() # Winlist is used to reduce calling i3.get_tree() too many times. self.winlist = i3tree.leaves() - self.configured_internally = self.cfg['configured_internally'] - del self.cfg['configured_internally'] + self.configured_internally = True for tag in self.cfg: self.tagged[tag] = [] self.current_position[tag] = 0 diff --git a/negwm/modules/scratchpad.py b/negwm/modules/scratchpad.py index bcf5616..4969cc1 100644 --- a/negwm/modules/scratchpad.py +++ b/negwm/modules/scratchpad.py @@ -32,8 +32,7 @@ def __init__(self, i3) -> None: def initialize(self, i3): self.win = None # reducing calling i3.get_tree() too many times. self.fullscreen_list = [] # performing fullscreen hacks - self.configured_internally = self.cfg['configured_internally'] - del self.cfg['configured_internally'] + self.configured_internally = True # scratchpad_geom used to respect current screen resolution in the geometry # settings and scale it self.scratchpad_geom = geom.geom(self.cfg)