Skip to content

Commit

Permalink
Window Dim: Use get_transient_for (#1659)
Browse files Browse the repository at this point in the history
  • Loading branch information
lenemter committed Apr 18, 2023
1 parent 5b4acc7 commit 5916b4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WindowManager.vala
Expand Up @@ -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
Expand Down

0 comments on commit 5916b4f

Please sign in to comment.