From 9bee44fe26b58b41d0e1957a00b10bc602a3c7d3 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 7 Jan 2009 22:19:46 +0000 Subject: [PATCH] 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 --- js/ui/main.js | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/js/ui/main.js b/js/ui/main.js index fb07085fb..b957f0b17 100644 --- a/js/ui/main.js +++ b/js/ui/main.js @@ -124,16 +124,11 @@ function start() { let display = global.screen.get_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) { - hide_overlay(); - } else { - show_overlay(); - } - }); + if (overlay.visible) { + hide_overlay(); + } else { + show_overlay(); + } }); }