summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/window.cpp b/src/window.cpp
index d8bfb30..ea53c5f 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -3152,10 +3152,10 @@ CompWindow::lower ()
the click-to-focus option is on */
if ((screen->getOption ("click_to_focus")->value ().b ()))
{
- Window aboveId = next ? next->id () : None;
+ Window aboveWindowId = prev ? prev->id () : None;
screen->unhookWindow (this);
CompWindow *focusedWindow = screen->priv->focusTopMostWindow ();
- screen->insertWindow (this , aboveId);
+ screen->insertWindow (this , aboveWindowId);
/* if the newly focused window is a desktop window,
give the focus back to w */