On 4 June 2012 13:30, Jasper St. Pierre <[email protected]> wrote: > Since we want clicks in windows to go to the appropriate place, we > have to do special magic to make sure that X is nice and cozy. I'm not > quite sure how expensive this work is for 50 penguin actors though, > and we could probably optimize it a lot, but the main thing is that > you need to add the actor to the chrome: > > let rect = new Clutter.Actor({ x: 50, y: 50, width: 200, height: > 200, background_color: > Clutter.Color.from_static(Clutter.StaticColor.YELLOW), reactive: true > }); > rect.connect('button-press-event', function() { /* ... */ }); > Main.layoutManager.addChrome(rect); > > This will track the actor's allocation and make sure the Shell is > aware that it wants to receive pointer events and things like that. > > -- > Jasper
Thanks, the missing link was Main.layoutManager.addChrome. _______________________________________________ gnome-shell-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/gnome-shell-list
