JonnyHaystack/i3-resurrect

Python wmctrl wrapper is slow

Closed this issue · 0 comments

Using the wmctrl-python library to get window info has a big performance overhead. The only thing I need to get is the PID which can be doing using xprop like so:

xprop _NET_WM_PID -id <window_id>

My tests show that this is much faster. It will also eliminate a (completely unmaintained) dependency.