Let's say I have applications A, B, C in the current workspace. A and B are beside each other (assume Application A is on focus) and C is not visible on the screen (it may [minimized] or [not be minimized, but it's not visible]) . I would like the program to print A, B and not C.
I tried using the Wnck package, but I only managed to get the following:
- Application in focus:
screen.get_active_window(). - All applications in the workspace:
screen.get_windows().
but I am not able to get the application only in the view of the user, i.e. A and B.
In summary, I want to print all applications in the view of the user (which is visible on the screen), irrespective of whether they are in focus or not.