respect external tabs in ArrangeWindows, patch from Tomas Janousek <tomi@nomi.cz>
This commit is contained in:
parent
3503f75903
commit
589ecfc060
3 changed files with 13 additions and 2 deletions
|
@ -1,5 +1,9 @@
|
|||
(Format: Year/Month/Day)
|
||||
Changes for 1.0rc3:
|
||||
*07/02/27:
|
||||
* Respect external tabs in ArrangeWindows (thanks to Tomas Janousek <tomi
|
||||
at nomiz dot cz>
|
||||
WorkspaceCmd.cc
|
||||
*07/02/25:
|
||||
* Update systemtray alpha along with toolbar alpha (Mark)
|
||||
Systemtray.cc/hh
|
||||
|
|
|
@ -263,3 +263,4 @@ $set 20 #layers
|
|||
4 Dock
|
||||
5 Normal
|
||||
6 Arriba
|
||||
|
||||
|
|
|
@ -233,9 +233,15 @@ void ArrangeWindowsCmd::execute() {
|
|||
}
|
||||
|
||||
if (normal_windows.size() > 1) {
|
||||
(*closest)->moveResize(x_offs, y_offs, cal_width, cal_height);
|
||||
(*closest)->moveResize(x_offs + (*closest)->xOffset(),
|
||||
y_offs + (*closest)->yOffset(),
|
||||
cal_width - (*closest)->widthOffset(),
|
||||
cal_height - (*closest)->heightOffset());
|
||||
} else { // the last window gets everything that is left.
|
||||
(*closest)->moveResize(x_offs, y_offs, screen->maxRight(head)-x_offs, cal_height);
|
||||
(*closest)->moveResize(x_offs + (*closest)->xOffset(),
|
||||
y_offs + (*closest)->yOffset(),
|
||||
screen->maxRight(head) - x_offs - (*closest)->widthOffset(),
|
||||
cal_height - (*closest)->heightOffset());
|
||||
}
|
||||
|
||||
normal_windows.erase(closest);
|
||||
|
|
Loading…
Reference in a new issue