Re: Accessing MetaWindow.get_xwindow from js
- From: Amy <mathematical coffee gmail com>
- To: "gnome-shell-list gnome org" <gnome-shell-list gnome org>
- Subject: Re: Accessing MetaWindow.get_xwindow from js
- Date: Mon, 29 Sep 2014 22:36:08 +1000
Hi Matthijs,
Yes, when it has `introspectable="0"` then you can't call it using GIR bindings from JS.
I found it useful to generate the documentation for Mutter from the gir - see this (you need g-ir-doc-tool) [0[
What do you want the xwindow for? Back when I wrote the Maximus extension (quite out of date now) I needed to get the X ID of the window so I could undecorate it and neither the X ID or the undecoration were exposed in the Mutter bindings, so I ended up forking out to xwininfo/xprop to do the job [1]. Depending on what you need the xwindow for, perhaps xwininfo/xprop could work for you.
Also if you have the wnck gir there are a bunch of methods exposed there that are not exposed in Mutter (for example at the time of writing the Window Options extension[2], also very out of date, the always_on_top ability was exposed in Wnck but not in Mutter: it was exposed in Mutter from 3.6 onwards though), so perhaps that could be another way to do what you want.
You can find wnck documentation here[3]
cheers
Amy
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]