mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue