From 29089fe2e849dc7d246f1bc36b1e28705281dfce Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Sun, 25 Sep 2016 11:20:32 +0200 Subject: [PATCH] Workspaces: style fixes As pointed out by Axel. --- src/apps/workspaces/Workspaces.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/apps/workspaces/Workspaces.cpp b/src/apps/workspaces/Workspaces.cpp index 34b715566b..c17140939e 100644 --- a/src/apps/workspaces/Workspaces.cpp +++ b/src/apps/workspaces/Workspaces.cpp @@ -694,7 +694,8 @@ WorkspacesWindow::WorkspacesWindow(WorkspacesSettings *settings) float width = floor(workspaceWidth * columns); float height = floor(workspaceHeight * rows); - // If you have too many workspaces to fit on the screen, shrink until they fit. + // If you have too many workspaces to fit on the screen, shrink until + // they fit. while (width + 2 * borderWidth > screenWidth || height + 2 * borderWidth + GetTabHeight() > screenHeight) { width = floor(0.95 * width); @@ -796,15 +797,15 @@ WorkspacesWindow::Zoom(BPoint origin, float width, float height) height = floor(workspaceHeight * rows); while (width + 2 * GetScreenBorderOffset() > screenWidth - || height + 2 * GetScreenBorderOffset() + GetTabHeight() > screenHeight) { + || height + 2 * GetScreenBorderOffset() + GetTabHeight() + > screenHeight) { width = floor(0.95 * width); height = floor(0.95 * height); } ResizeTo(width, height); - if (fSettings->AutoRaising()) - { + if (fSettings->AutoRaising()) { // The auto-raising mode makes sense only if the window is positionned // exactly in the bottom-right corner. If the setting is enabled, move // the window there.