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
This commit is contained in:
Vlad Zahorodnii 2021-03-03 09:15:12 +02:00 committed by Aleix Pol Gonzalez
parent 5f7a2806f0
commit d9ec482257

View file

@ -68,6 +68,7 @@ bool Unmanaged::track(xcb_window_t w)
NET::WM2WindowRole |
NET::WM2WindowClass |
NET::WM2OpaqueRegion);
setOpacity(info->opacityF());
getResourceClass();
getWmClientLeader();
getWmClientMachine();