Search code examples
javascriptgnome-shellgnome-shell-extensions

How to tell if a window is minimized using GJS?


The wrappers for GJS/Gnome don't seem to expose the "minimized" property. There is a get_maximized(), but this doesn't seem to return the information I need.

Using the JavaScript bindings for Gnome Applets, is there a way to get whether a MetaWindow is minimized?

https://developer.gnome.org/meta/stable/MetaWindow.html


Solution

  • The property minimized is exposed in Gjs.

    In LookingGlass ([Alt]+[F2], then "lg") try this :

    global.screen.get_active_workspace().list_windows()[0].minimized