[SOLVED] Looking Glass Inspector - Event Pass Through?

Please post suggestions for improvement of Cinnamon here
https://github.com/linuxmint/Cinnamon

[SOLVED] Looking Glass Inspector - Event Pass Through?

Postby mintystark on Sun Oct 27, 2013 6:05 am

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/mathematicalcoffee/looking-glass-inspector-gnome-shell-extension

Any Help would be great.

Thanks
Last edited by mintystark on Tue Oct 29, 2013 12:31 pm, edited 1 time in total.
mintystark
Level 1
Level 1
 
Posts: 13
Joined: Sat Jan 07, 2012 4:19 am

Linux Mint is funded by ads and donations.
 

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

Postby mintystark on Mon Oct 28, 2013 12:00 am

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
Level 1
Level 1
 
Posts: 13
Joined: Sat Jan 07, 2012 4:19 am

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

Postby mintystark on Tue Oct 29, 2013 12:30 pm

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/wiki/Trying-out-the-latest-Cinnamon-without-building-it.

More info Here:
https://github.com/linuxmint/Cinnamon/issues/2556
mintystark
Level 1
Level 1
 
Posts: 13
Joined: Sat Jan 07, 2012 4:19 am


Return to Cinnamon

Who is online

Users browsing this forum: Tim-int and 7 guests