Window Dim: Use get_transient_for (#1659)

This commit is contained in:
Leo 2023-04-18 17:14:43 +09:00 committed by GitHub
parent 5b4acc7bec
commit 5916b4f8a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -807,7 +807,7 @@ namespace Gala {
}
private void dim_parent_window (Meta.Window window, bool dim) {
unowned var ancestor = window.find_root_ancestor ();
unowned var ancestor = window.get_transient_for ();
if (ancestor != null && ancestor != window) {
unowned var win = (Meta.WindowActor) ancestor.get_compositor_private ();
// Can't rely on win.has_effects since other effects could be applied