aikeru
aikeru

Reputation: 3983

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

Upvotes: 1

Views: 425

Answers (1)

AMDG
AMDG

Reputation: 975

The property minimized is exposed in Gjs.

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

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

Upvotes: 1

Related Questions