fixed issue where the name of the active window/frame disappears on workspace change

This commit is contained in:
rozodru 2025-07-20 16:51:06 -04:00
parent f409d8ba30
commit 06e1e490a0
1 changed files with 2 additions and 2 deletions

View File

@ -176,8 +176,8 @@ class NEDMWorkspaceTracker:
if event_name == 'switch_ws':
self.current_workspace = event.get('new_workspace', 1) # Already 1-based
# Clear window title when switching workspaces since we don't know the focused window
self.current_window_title = ""
# Query current state to get the focused window on the new workspace
self.query_current_state()
elif event_name == 'focus_tile':
workspace = event.get('new_workspace') # Use new_workspace for focus_tile events
if workspace is not None: