Quote:
Originally Posted by belhifet
I want to make a simple task switcher.
When a special event happens (e.g. when the mouse wheel is clicked), I want the program to switch the current application with the lastly used one.
I'm using C.
1. How can I get which is the current application running (having focus in X.org) and the lastly used one?
2. How can i switch the focus from the current one to the lastly used one (like if you had clicked at the lastly used application on the taskbar, and it would bring it to front, getting the focus)?
|
Couple of questions:
1) what window manager are you using, as it will more than likely be the one to handle those tasks?
2) are you attempting to write a task switcher that is wm-independant, and if so, are you crazy?
Just kidding about the crazy stuff...but seriously, that's where I'd look first. Let me know if you run into trouble finding information...