Fix disappearing close button

Show the close button after zooming a window in the overview when the
window clone has the pointer focus.

https://bugzilla.gnome.org/show_bug.cgi?id=602772
This commit is contained in:
Florian Müllner 2009-11-23 22:42:02 +01:00 committed by Colin Walters
parent 1d2dc09ede
commit f0e3b87330

View File

@ -367,6 +367,12 @@ WindowOverlay.prototype = {
},
show: function() {
let [child, x, y, mask] = Gdk.Screen.get_default().get_root_window().get_pointer();
let actor = global.stage.get_actor_at_pos(Clutter.PickMode.REACTIVE,
x, y);
if (actor == this._windowClone.actor) {
this.closeButton.show();
}
this.title.show();
},