da-rth / yasb

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

[BUG] the active_window widget does not work when monitor_exclusive is true #86

Open Fangjin98 opened 1 year ago

Fangjin98 commented 1 year ago

Expected Behavior

I have 2 monitors. The active window title should be shown exclusively for the bars on the active window screen, when the monitor_exclusive is true.

Current Behavior

The active window title won't be shown on any of bars of both monitors.

Possible Solution

Add logging.info(f"The monitor name is {monitor_name}, and the screen name is {self.screen().name()}") in active_window.py and the prints are as follow:

2023-04-27 19:24:16 INFO active_window.py: The monitor name is \\.\DISPLAY1, and the screen name is LF24T35
2023-04-27 19:24:16 INFO active_window.py: The monitor name is \\.\DISPLAY1, and the screen name is L24e-30

Since monitor_name does not equal to both screens, the program will always execute self._window_title_text.hide().

Context (Environment)