View Single Post
helex's Avatar
Posts: 543 | Thanked: 802 times | Joined on Apr 2010 @ Germany
#9
Originally Posted by jstokes View Post
You can, but it involves X calls from what I know. I don't know how you do it in Python, though. If you have xprop installed, you can invoke "xprop -root" and look at the _NET_ACTIVE_WINDOW or _MB_CURRENT_APP_WINDOW. The numbers represent a Window ID (XID). You can use them to get the WMCLASS or the title of an application
Ah, thanks. I haven't known about this. But it seems more as a tool for developers... and after looking at the package I guess it is not a good idea to investigate how this works using python: Package

It would end with some wasted time. I'm trying to develop a application and if it works as I imagine myself at the moment I like to upload it to extra-devel and push it to extra-testing as soon as it works without errors.

But depending on this package this would never happen. So it couldn't be a solution for normal applications. Or am I wrong?

As you already stated, there should be a simpler way...
__________________
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.

Last edited by helex; 2011-04-09 at 21:35.