From 40ddabe7fcf15601a75245b356864fee734933f3 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Thu, 9 Apr 2026 19:20:49 +0545 Subject: [PATCH] refactor(modules/desktop): simplify Deskwidgets to manage windows instead of being a window - Refactored Deskwidgets to no longer inherit from Window, now managing windows via attributes. - Removed unnecessary initialization parameters and size settings. - Updated class comment to reflect the new responsibilities. --- modules/desktop/widget.py | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/modules/desktop/widget.py b/modules/desktop/widget.py index c38e206..a845477 100644 --- a/modules/desktop/widget.py +++ b/modules/desktop/widget.py @@ -607,22 +607,13 @@ class CpuInfo(SystemInfoBase): return True -class Deskwidgets(Window): +class Deskwidgets: """Desktop widgets manager - handles all desktop widgets.""" config = load_config() - def __init__(self, **kwargs): - # Create the main invisible window that manages the widgets - super().__init__( - name="desktop-widget-manager", - layer="bottom", - title="modus-desktop-widget-manager", - visible=False, # This window is invisible - just manages the others - size=(1, 1), # Minimal size - anchor="top left", - **kwargs, - ) + def __init__(self): + # This class now just manages other windows instead of being one itself # Create separate independent windows as attributes self.top_left = Window(