Is it possible to show the GS overview but only with some selected apps windows thumbnails (here 1 given app in fact)?
Is it possible to get an orphaned window from its button in GS dash (that does appear for some apps, e.g. a VM launched in VirtualBox, gives a “wheel” icon)? If not, what part of GS ui code does handle such apps and create this window button instead an app button in dash?
Is it possible to show the GS overview but only with some selected apps windows thumbnails (here 1 given app in fact)?
Yes, unless you mean: Without implementing it first.
Is it possible to get an orphaned window from its button in GS dash
You mean a window that couldn’t be matched to a .desktop file?
Sure. We create fake apps for windows that cannot be matched to a real app, so you can use Shell.App APIs like app.get_windows() like for any other app.
If you want to test for fake vs. regular apps, app.is_window_backed() returns true for the former.
Thanks!
It works (but unfortunately the dash redisplay is triggered by overview and I still need the dash signal connections to update my task bar DashBar task bar - GNOME Shell Extensions ).
My goal was to update this task bar as few as possible.
Do you see any optimisation? I need here to know when dash should be updated and what app has focus, vs GS dash, that does not display this. I made a timeout as this to limit the task bar redraws:
I’d consider using windowTracker.connect('notify::focus-app', ...) for tracking the app that has focus, and depending on what exactly you are trying to do, handle the focus change without rebuilding the whole thing.
Thanks!
Is there a way to catch the focused app when this signal is emitted ?
If not, is there a simple way to catch the current focused app?
If not I’ll make a focused app function considering its windows, but…