screenshot: Enable opacity redirect for the panel

This makes the panel look correct when it fades out (e.g. while dragging
the area selection around or while the screenshot UI is fading in and
out).

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2138>
This commit is contained in:
Ivan Molodetskikh 2022-01-31 10:58:49 +03:00 committed by Marge Bot
parent 0d1f6b0eb9
commit 5b83ed59dd

View File

@ -1081,6 +1081,7 @@ var ScreenshotUI = GObject.registerClass({
y_align: Clutter.ActorAlign.END,
y_expand: true,
vertical: true,
offscreen_redirect: Clutter.OffscreenRedirect.AUTOMATIC_FOR_OPACITY,
});
this._primaryMonitorBin.add_child(this._panel);