gnome-shell r120 - trunk/js/ui



Author: walters
Date: Fri Dec  5 21:12:43 2008
New Revision: 120
URL: http://svn.gnome.org/viewvc/gnome-shell?rev=120&view=rev

Log:
Connect to overlay-key signal from metacity-clutter to hide/show overlay

We want to effectively bind the "Windows key" on PC hardware to hide
and show the overlay.

Modified:
   trunk/js/ui/main.js

Modified: trunk/js/ui/main.js
==============================================================================
--- trunk/js/ui/main.js	(original)
+++ trunk/js/ui/main.js	Fri Dec  5 21:12:43 2008
@@ -120,6 +120,15 @@
 
     overlay = new Overlay.Overlay();
     wm = new WindowManager.WindowManager();
+    
+    let display = global.screen.get_display();
+    display.connect('overlay-key', function(display) {
+        if (overlay.visible) {
+            hide_overlay();
+        } else {
+            show_overlay();
+        }
+    });
 }
 
 // Used to go into a mode where all keyboard and mouse input goes to



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]