Skip to content

Commit 617f765

Browse files
committed
Check ancestors
1 parent 7f84a04 commit 617f765

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

‎src/ShellClients/ShellClientsManager.vala‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,15 @@ public class Gala.ShellClientsManager : Object {
156156
}
157157

158158
public bool is_positioned_window (Meta.Window window) {
159-
return (window in centered_windows) || (window in windows);
159+
bool positioned = (window in centered_windows) || (window in windows);
160+
window.foreach_ancestor ((ancestor) => {
161+
if (ancestor in centered_windows || ancestor in windows) {
162+
positioned = true;
163+
}
164+
165+
return !positioned;
166+
});
167+
168+
return positioned;
160169
}
161170
}

0 commit comments

Comments
 (0)