From be90145227ca5cb9b54547ccb3905419f4d4f9d9 Mon Sep 17 00:00:00 2001
From: Mathias Gumz <akira at fluxbox dot org>
Date: Mon, 25 Apr 2011 11:33:20 +0200
Subject: bugfix: do not warp workspaces with only one workspace

---
 src/Screen.hh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Screen.hh b/src/Screen.hh
index 6e995c3..729461a 100644
--- a/src/Screen.hh
+++ b/src/Screen.hh
@@ -102,7 +102,7 @@ public:
 
     bool isRootColormapInstalled() const { return root_colormap_installed; }
     bool isScreenManaged() const { return managed; }
-    bool isWorkspaceWarping() const { return *resource.workspace_warping; }
+    bool isWorkspaceWarping() const { return (m_workspaces_list.size() > 1) && *resource.workspace_warping; }
     bool doAutoRaise() const { return *resource.auto_raise; }
     bool clickRaises() const { return *resource.click_raises; }
     bool doOpaqueMove() const { return *resource.opaque_move; }
-- 
cgit v0.11.2