Bug 563394 - revert change to run overlay key in idle

This was likely a different bug, possibly the OOM after a period of time.
It seems reliable for me now without the idle.

svn path=/trunk/; revision=140
This commit is contained in:
Colin Walters 2009-01-07 22:19:46 +00:00
parent 85c22e484d
commit 9bee44fe26

View File

@ -124,17 +124,12 @@ function start() {
let display = global.screen.get_display(); let display = global.screen.get_display();
display.connect('overlay-key', function(display) { display.connect('overlay-key', function(display) {
// Queue an idle for this, because we're getting called
// out of a metacity event handler, and doing a lot of
// work from inside there is...iffy.
Mainloop.idle_add(function () {
if (overlay.visible) { if (overlay.visible) {
hide_overlay(); hide_overlay();
} else { } else {
show_overlay(); 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