---
 client.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/client.c b/client.c
index 51bebd9..758bd09 100644
--- a/client.c
+++ b/client.c
@@ -314,7 +314,11 @@ client_stack_above(client_t *c, xcb_window_t previous)
         {
             client_stack_above(node->client,
                                previous);
-            previous = node->client->win;
+            /* The titlebar is stacked one level higher than the actual 
window. */
+            if (node->client->titlebar)
+                previous = node->client->titlebar->sw.window;
+            else
+                previous = node->client->win;
         }
 
     return previous;
-- 
1.6.1.2


-- 
To unsubscribe, send mail to awesome-devel-unsubscr...@naquadah.org.

Reply via email to