summaryrefslogtreecommitdiff
path: root/src/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/window.cpp')
-rw-r--r--src/window.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/window.cpp b/src/window.cpp
index f26f7cb..53fe4d8 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -2014,9 +2014,8 @@ CompWindow::moveInputFocusTo ()
void
CompWindow::moveInputFocusToOtherWindow ()
{
- if ((priv->id = screen->activeWindow () ||
- priv->id == screen->priv->nextActiveWindow) ||
- screen->activeWindow () == None)
+ if (priv->id == screen->activeWindow () ||
+ priv->id == screen->priv->nextActiveWindow)
{
CompWindow *ancestor;