View Single Post
helex's Avatar
Posts: 543 | Thanked: 802 times | Joined on Apr 2010 @ Germany
#11
Originally Posted by jstokes View Post
Sorry, I didn't mean use xprop in the application... I meant use it to figure out the way X properties work etc. and create an implementation in Python. Thankfully, since you're using GTK, the GDK wrapper around X makes this really easy (in Python anyway
Oh, yes. Sorry. I misunderstood your suggestion.
Thanks a lot for your example code. It works really good.

Originally Posted by jstokes View Post
Add error checking as required.
Yes, if the task switcher is currently running active_window.property_get crashes. But this way I'm able to see that no window has currently the focus and the user is at the task switcher.

I don't need this at the moment. But good to know. Perhaps this could be usefull for a other project.
__________________
I was a Qt Ambassador!

Please DONATE if you like my work!
It's the best way to motivate me to create more stuff for your Device.
 

The Following User Says Thank You to helex For This Useful Post: