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.
This commit is contained in:
Jasper St. Pierre 2013-03-15 14:54:22 -04:00
parent da7ab7057d
commit 6c0f48ce25

View File

@ -1066,7 +1066,8 @@ const LayoutManager = new Lang.Class({
} }
} }
this.emit('fullscreen-changed'); if (changed)
this.emit('fullscreen-changed');
}, },
_updateRegions: function() { _updateRegions: function() {