From 643febebf84f5a7d975b2a44597b79ce8b2d6a07 Mon Sep 17 00:00:00 2001 From: Marina Zhurakhinskaya Date: Thu, 25 Jun 2009 14:33:24 -0400 Subject: [PATCH] Add a comment about the use of the transparent background and set its opacity to 0 Add a comment about the use of the transparent background to catch clicks in the workspaces area when the dash panes are being displayed and dismiss the dash panes. Set opacity for the background to 0 instead of using a transparent background color so that Clutter optimizes the drawing of the background actor. --- js/ui/overlay.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/ui/overlay.js b/js/ui/overlay.js index 64089ce46..628a20a7e 100644 --- a/js/ui/overlay.js +++ b/js/ui/overlay.js @@ -798,7 +798,10 @@ Overlay.prototype = { background.y = -global.screen_height * (4 * BACKGROUND_SCALE - 3) / 6; this._group.add_actor(background); - this._transparentBackground = new Clutter.Rectangle({ color: TRANSPARENT_COLOR, + // Transparent background is used to catch clicks outside of the dash panes when the panes + // are being displayed and the workspaces area should not be reactive. Catching such a + // click results in the panes being closed and the workspaces area becoming reactive again. + this._transparentBackground = new Clutter.Rectangle({ opacity: 0, width: global.screen_width, height: global.screen_height - Panel.PANEL_HEIGHT, y: Panel.PANEL_HEIGHT,