Open devoid1 opened 5 months ago
This line is responsible for updating desktop number. Not related to nvidia.
My guess is that desktop
window type doesn't get notified about the change, which is wrong. Not sure what causes this - likely we don't listen for PropertyNotify
events when window type is desktop
.
I'll be able to take a closer look in a few weeks because I have midterms (so I'm leaving triage), but try changing window type to normal
in the meantime if it works (it should work on most DEs/WMs).
changing window type to "normal" causes $desktop variable to be updated correctly. ill run it this way for now. if you need testing at a later date i can help.
@devoid1 thanks for your offer, but this likely won't need testing - if PropertyNotify
can be listened to (some events can't in some cases) it should just work.
I'm self assigning this so I remember to fix it, but it's a good first issue and if someone wants to fix it in the meantime feel free to do so.
To fix, you need to select events for PropertyChangeMask
on window.root
after this line, and then return true
before this line in the event handler if ev.window != window.window
. I'm 80% sure this will work.
I currently have a bunch of opened PRs I need to cleanup and get merged before opening a new one.
What happened?
i have been upgrading religiously, on 1.21.2 now. running linux mint 21.3. i have an nvidia video card, using nvidia drivers. i noticed suddenly (so i dont know when it started) that the $desktop variable is not changing. if you start conky while on desktop 2 it picks up desktop 2, but that doesnt change when switching desktops.
Version
1.21.2
Which OS/distro are you seeing the problem on?
Ubuntu
Conky config
Stack trace
No response
Relevant log output
No response