mirror of
https://github.com/elementary/gala.git
synced 2024-09-11 15:15:39 +03:00
Window Dim: Use get_transient_for
(#1659)
This commit is contained in:
parent
5b4acc7bec
commit
5916b4f8a4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user