summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 6072f96..3854feb 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -4770,9 +4770,15 @@ CompWindow::desktop ()
}
Window
-CompWindow::clientLeader ()
+CompWindow::clientLeader (bool checkAncestor)
{
- return priv->clientLeader;
+ if (priv->clientLeader)
+ return priv->clientLeader;
+
+ if (checkAncestor)
+ return priv->getClientLeaderOfAncestor ();
+
+ return None;
}
Window