aboutsummaryrefslogtreecommitdiff
path: root/src/WorkspaceCmd.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/WorkspaceCmd.cc')
-rw-r--r--src/WorkspaceCmd.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/WorkspaceCmd.cc b/src/WorkspaceCmd.cc
index d2bc3b7..414f942 100644
--- a/src/WorkspaceCmd.cc
+++ b/src/WorkspaceCmd.cc
@@ -233,9 +233,15 @@ void ArrangeWindowsCmd::execute() {
233 } 233 }
234 234
235 if (normal_windows.size() > 1) { 235 if (normal_windows.size() > 1) {
236 (*closest)->moveResize(x_offs, y_offs, cal_width, cal_height); 236 (*closest)->moveResize(x_offs + (*closest)->xOffset(),
237 y_offs + (*closest)->yOffset(),
238 cal_width - (*closest)->widthOffset(),
239 cal_height - (*closest)->heightOffset());
237 } else { // the last window gets everything that is left. 240 } else { // the last window gets everything that is left.
238 (*closest)->moveResize(x_offs, y_offs, screen->maxRight(head)-x_offs, cal_height); 241 (*closest)->moveResize(x_offs + (*closest)->xOffset(),
242 y_offs + (*closest)->yOffset(),
243 screen->maxRight(head) - x_offs - (*closest)->widthOffset(),
244 cal_height - (*closest)->heightOffset());
239 } 245 }
240 246
241 normal_windows.erase(closest); 247 normal_windows.erase(closest);