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.

svn path=/trunk/; revision=120
This commit is contained in:
Colin Walters 2008-12-05 21:12:43 +00:00
parent 65989de535
commit b1da771d32

View File

@ -120,6 +120,15 @@ function start() {
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