aw-watcher-window icon indicating copy to clipboard operation
aw-watcher-window copied to clipboard

Added exception handling for `Xlib.error.BadWindow`

Open 0xErwin1 opened this issue 2 years ago • 0 comments

Implemented a try/except block to catch the Xlib.error.BadWindow error during window name and class fetching. This change prevents the appearance of unnecessary messages in the logs, which although they do not affect the performance or operation of the watcher, they generate noise and do not provide relevant information about the error. With this enhancement, in case this error is detected, the window name or class will be set to "unknown", allowing the process to continue without interruption

0xErwin1 avatar Feb 04 '24 11:02 0xErwin1