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:
parent
da7ab7057d
commit
6c0f48ce25
@ -1066,7 +1066,8 @@ const LayoutManager = new Lang.Class({
|
||||
}
|
||||
}
|
||||
|
||||
this.emit('fullscreen-changed');
|
||||
if (changed)
|
||||
this.emit('fullscreen-changed');
|
||||
},
|
||||
|
||||
_updateRegions: function() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user