Page 1 of 1

[SOLVED] Looking Glass Inspector - Event Pass Through?

Posted: Sun Oct 27, 2013 6:05 am
by mintystark
I am looking for a way to use the Looking glass so I can inspect Cinnamon Elements including applets, etc.
The looking glass works great except it does not allow me to have event pass through. Meaning when I click on an applet it opens the applet, but then the inspector stops. This means I am unable to inspect anything else beyond just the panel.

Does anyone know of a way to inspect all cinnamon elements incuding applets?

When using the inspector it shows a text that says "Press Pause to enable event Pass thorugh".
What does it mean by "Pause". I have tried all keypad combinations that I could think of. Nothing works.

There is a Gnome 3 Extension developer that create an extension for Looking Glass that allows you to hold Shift, but his Extension does not work on Cinnamon 1.8.
Maybe a Cinnamon Extension Developer can try and port it.
https://bitbucket.org/mathematicalcoffe ... -extension

Any Help would be great.

Thanks

Re: [SOLVED] Looking Glass Inspector - Event Pass Through?

Posted: Mon Oct 28, 2013 12:00 am
by mintystark
Looking at the Looking Glass code I found this:

Code: Select all

 _updatePassthroughText: function() {
        if(this.passThroughEvents)
            this._passThroughText.text = '(Press Pause to disable event pass through)';
        else
            this._passThroughText.text = '(Press Pause to enable event pass through)';
    },

    _onCapturedEvent: function (actor, event) {
        if(event.type() == Clutter.EventType.KEY_PRESS && event.get_key_symbol() == Clutter.Pause) {
            this.passThroughEvents = !this.passThroughEvents;
            this._updatePassthroughText();
            return true;
        }

So it looks like it use Clutter to enable Pause. I am not familiar with Clutter.
Initial Research shows that it is a separate program or something. Just can't find any info on it.
Does someone anyone know how to use this and enable pause?

Re: [SOLVED] Looking Glass Inspector - Event Pass Through?

Posted: Tue Oct 29, 2013 12:30 pm
by mintystark
I didn't realize there is an actual "Pause" key on most keyboards. Also seen as a "Break" key.
I have a newer laptop that doesn't have that key and I tried many key combinations to replicate it with no success.

So I found and old usb keyboard with the Pause key. Plugged it into my laptop and it WORKS!

FYI,
One of the Cinnamon Developers added an update to Looking Glass that will also support the Ctrl key.
Not, sure when it will be available or for what Cinnamon version, but I am glad to know it is on its way.
You can install the Latest nightly version to get the new version.
https://github.com/linuxmint/Cinnamon/w ... ilding-it.

More info Here:
https://github.com/linuxmint/Cinnamon/issues/2556