da-rth / yasb

A highly configurable cross-platform (Windows) status bar written in Python.
MIT License
1.39k stars 81 forks source link

fix: Komorebi active workspace indicator not updating with focus-named-workspace and move-to-named-workspace #111

Open spreadprism opened 11 months ago

spreadprism commented 11 months ago

Pull Request #111

I use komorebi focus-named-workspace and move-to-named-workspace to manage my workspaces and the widget wasn't updating.

Description

I included FocusNamedWorkspace and MoveContainerToNamedWorkspace socket message from komorebi-core into yasb KomorebiEvent enum.

I then included these enums in the "workspace_focus_events" and "update_buttons_event_watchlist" lists within the komorebi widget so that it would update when I changed workspaces.

Related Issue

This PR fixes issue #24

Testing

I am already using the change locally, and I haven't encountered any issues