diff --git a/js/ui/workspace.js b/js/ui/workspace.js index a60b6a209..31892e56a 100644 --- a/js/ui/workspace.js +++ b/js/ui/workspace.js @@ -670,7 +670,7 @@ var WindowOverlay = class { return; this._animateVisible(); - this.emit('show-close-button'); + this.emit('chrome-visible'); } _onHideChrome() { @@ -1855,7 +1855,7 @@ var Workspace = class { this.actor.add_actor(clone.actor); - overlay.connect('show-close-button', () => { + overlay.connect('chrome-visible', () => { let focus = global.stage.key_focus; if (focus == null || this.actor.contains(focus)) clone.actor.grab_key_focus();