Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
spectrwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cfe055c
)
Fix positioning issue on flipped layouts with a multi-column/row stack.
author
Reginald Kennedy
<rk@rejii.com>
Sat, 27 Apr 2013 21:30:59 +0000
(
05:30
+0800)
committer
Reginald Kennedy
<rk@rejii.com>
Sat, 27 Apr 2013 21:36:02 +0000
(
05:36
+0800)
spectrwm.c
patch
|
blob
|
history
diff --git
a/spectrwm.c
b/spectrwm.c
index
1e20562
..
5bf74b1
100644
(file)
--- a/
spectrwm.c
+++ b/
spectrwm.c
@@
-4259,20
+4259,24
@@
stack_master(struct workspace *ws, struct swm_geometry *g, int rot, int flip)
colno = (winno - mwin) / stacks;
if (s <= (winno - mwin) % stacks)
colno++;
colno = (winno - mwin) / stacks;
if (s <= (winno - mwin) % stacks)
colno++;
- split = split + colno;
- hrh = (r_g.h / colno);
+ split += colno;
+ hrh = r_g.h / colno;
extra = r_g.h - (colno * hrh);
extra = r_g.h - (colno * hrh);
- if (flip)
- win_g.x = r_g.x;
- else
+
+ if (!flip)
win_g.x += win_g.w + 2 * border_width +
tile_gap;
win_g.x += win_g.w + 2 * border_width +
tile_gap;
+
win_g.w = (r_g.w - msize -
(stacks * (2 * border_width + tile_gap))) / stacks;
if (s == 1)
win_g.w += (r_g.w - msize -
(stacks * (2 * border_width + tile_gap))) %
stacks;
win_g.w = (r_g.w - msize -
(stacks * (2 * border_width + tile_gap))) / stacks;
if (s == 1)
win_g.w += (r_g.w - msize -
(stacks * (2 * border_width + tile_gap))) %
stacks;
+
+ if (flip)
+ win_g.x -= win_g.w + 2 * border_width +
+ tile_gap;
s--;
j = 0;
}
s--;
j = 0;
}