There was an error while loading. Please reload this page.
1 parent 7f84a04 commit 617f765Copy full SHA for 617f765
1 file changed
src/ShellClients/ShellClientsManager.vala
@@ -156,6 +156,15 @@ public class Gala.ShellClientsManager : Object {
156
}
157
158
public bool is_positioned_window (Meta.Window window) {
159
- return (window in centered_windows) || (window in windows);
+ 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;
169
170
0 commit comments