[SOLVED] Looking Glass Inspector - Event Pass Through?

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
mintystark

[SOLVED] Looking Glass Inspector - Event Pass Through?

Post 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
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
mintystark

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

Post 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?
Last edited by mintystark on Tue Oct 29, 2013 12:31 pm, edited 1 time in total.
mintystark

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

Post 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
Locked

Return to “Cinnamon”