From d9ec48225702e4ce272f13ea84a28cff7acdac0d Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Wed, 3 Mar 2021 09:15:12 +0200 Subject: [PATCH] x11: Initialize opacity when starting to track Unmanaged This is a minor regression that was introduced with the refactoring of Toplevel::opacity(). Previously, neither X11Client nor Unmanaged had to explicitly initialize the opacity because it was queried from the net info object in Toplevel::opacity(). With the refactored version, X11-specific opacity code was removed from the Toplevel class. When starting to manage a window, the opacity must be explicitly initialized. BUG: 432744 --- src/unmanaged.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/unmanaged.cpp b/src/unmanaged.cpp index 86ac261a31..277d127f72 100644 --- a/src/unmanaged.cpp +++ b/src/unmanaged.cpp @@ -68,6 +68,7 @@ bool Unmanaged::track(xcb_window_t w) NET::WM2WindowRole | NET::WM2WindowClass | NET::WM2OpaqueRegion); + setOpacity(info->opacityF()); getResourceClass(); getWmClientLeader(); getWmClientMachine();