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:
parent
65989de535
commit
b1da771d32
@ -120,6 +120,15 @@ function start() {
|
|||||||
|
|
||||||
overlay = new Overlay.Overlay();
|
overlay = new Overlay.Overlay();
|
||||||
wm = new WindowManager.WindowManager();
|
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
|
// Used to go into a mode where all keyboard and mouse input goes to
|
||||||
|
Loading…
Reference in New Issue
Block a user