fixed issue where the name of the active window/frame disappears on workspace change
This commit is contained in:
parent
f409d8ba30
commit
06e1e490a0
|
@ -176,8 +176,8 @@ class NEDMWorkspaceTracker:
|
||||||
|
|
||||||
if event_name == 'switch_ws':
|
if event_name == 'switch_ws':
|
||||||
self.current_workspace = event.get('new_workspace', 1) # Already 1-based
|
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
|
# Query current state to get the focused window on the new workspace
|
||||||
self.current_window_title = ""
|
self.query_current_state()
|
||||||
elif event_name == 'focus_tile':
|
elif event_name == 'focus_tile':
|
||||||
workspace = event.get('new_workspace') # Use new_workspace for focus_tile events
|
workspace = event.get('new_workspace') # Use new_workspace for focus_tile events
|
||||||
if workspace is not None:
|
if workspace is not None:
|
||||||
|
|
Loading…
Reference in New Issue