RFE: Auto-load maps based on the app with focus
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
WiiCan |
New
|
Wishlist
|
Unassigned |
Bug Description
It would be nice if Wiican could detect what application had focus and automatically load a map based on that application (if such a map existed).
I'm not sure how to accomplish this *without* using AT-SPI; but I do know that you can figure out the app with focus using AT-SPI. If you wind up having to go that route, I'd think all you'd need to do is listen for window:activate events.
For instance, try enabling AT support for your session (System-
~~~~~~~
#!/usr/bin/python
import pyatspi
def onWindowActivat
print "window activated %s" % event.host_
pyatspi.
pyatspi.
~~~~~~~
Changed in wiican: | |
importance: | Undecided → Wishlist |
The script works great!
I think this feature could be included in Wiican 0.3.x series. Once wiican-0.3 be released i'll target this rfe to the next milestone.