Commit 355b5eeb authored by Florian Müllner's avatar Florian Müllner Committed by Florian Müllner

workspace: Set offscreen redirect on window previews

Window previews are sometimes shown translucent, for example during
drags or animations. They can also have attached dialogs, in which
case the opacity should affect the combination of all windows instead
of being applied to each window individually, blended together, so
make sure they are redirected as a whole when necessary.

#774
parent 51938c39
Pipeline #94335 passed with stages
in 4 minutes and 6 seconds
......@@ -130,6 +130,8 @@ var WindowClone = GObject.registerClass({
layout_manager: new WindowCloneLayout()
});
this.set_offscreen_redirect(Clutter.OffscreenRedirect.AUTOMATIC_FOR_OPACITY);
this.add_child(this._windowClone);
this._delegate = this;
......@@ -184,6 +186,10 @@ var WindowClone = GObject.registerClass({
this._closeRequested = false;
}
vfunc_has_overlaps() {
return this.hasAttachedDialogs();
}
set slot(slot) {
this._slot = slot;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment