readme: specify app handlers a bit more

This commit is contained in:
Tor Hedin Brønner
2018-06-16 02:36:26 +02:00
parent c4f7efe2de
commit 5015cd2051

View File

@@ -134,7 +134,13 @@ The app id of a window can be looked up like this:
```javascript
var Shell = imports.gi.Shell;
var Tracker = Shell.WindowTracker.get_default();
Tracker.get_window_app(metaWindow);
var app = Tracker.get_window_app(metaWindow);
app.get_id();
```
Available application actions can be listed like this:
```javascript
app.action_group.list_actions();
```