Reply
Thread Tools
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:
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#12
FYI, there is a way to check if the you're in the task manager (no idea how, but it can be done).
The stock media player does it from PR1.2 onwards (older versions used to stop updating the progress bar even when you were in the task manager, the PR1.2 one stops updating it when you leave the window AND the task manager)
 

The Following 2 Users Say Thank You to MohammadAG For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 13:43.