aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathias <mathias>2007-02-27 18:07:36 (GMT)
committermathias <mathias>2007-02-27 18:07:36 (GMT)
commit589ecfc060ffebd2ec3aaf7d866f5ea885bd8aa3 (patch)
tree421874de6ca91afb5a840920705aed9f26960722 /src
parent3503f75903207e8bc658559fb3df46ea0de55004 (diff)
downloadfluxbox-589ecfc060ffebd2ec3aaf7d866f5ea885bd8aa3.zip
fluxbox-589ecfc060ffebd2ec3aaf7d866f5ea885bd8aa3.tar.bz2
respect external tabs in ArrangeWindows, patch from Tomas Janousek <tomi@nomi.cz>
Diffstat (limited to 'src')
-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);