bugfix: do not warp workspaces with only one workspace

This commit is contained in:
Mathias Gumz 2011-04-25 11:33:20 +02:00
parent 86c9b100f3
commit be90145227

View file

@ -102,7 +102,7 @@ public:
bool isRootColormapInstalled() const { return root_colormap_installed; } bool isRootColormapInstalled() const { return root_colormap_installed; }
bool isScreenManaged() const { return managed; } 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 doAutoRaise() const { return *resource.auto_raise; }
bool clickRaises() const { return *resource.click_raises; } bool clickRaises() const { return *resource.click_raises; }
bool doOpaqueMove() const { return *resource.opaque_move; } bool doOpaqueMove() const { return *resource.opaque_move; }