From 6c0f48ce25d0c275928ef2d476cc09c33505ffea Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Fri, 15 Mar 2013 14:54:22 -0400 Subject: [PATCH] layout: Only emit fullscreen-changed if things actually changed This prevents the message tray from doing a lot of work that it doesn't need to. --- js/ui/layout.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/ui/layout.js b/js/ui/layout.js index 1fff9cc53..32b65e603 100644 --- a/js/ui/layout.js +++ b/js/ui/layout.js @@ -1066,7 +1066,8 @@ const LayoutManager = new Lang.Class({ } } - this.emit('fullscreen-changed'); + if (changed) + this.emit('fullscreen-changed'); }, _updateRegions: function() {