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:
f92c9ed
)
Support placing the master area on the opposite side.
author
Ryan McBride
<mcbride@countersiege.com>
Sun, 25 Jan 2009 10:54:16 +0000
(10:54 +0000)
committer
Ryan McBride
<mcbride@countersiege.com>
Sun, 25 Jan 2009 10:54:16 +0000
(10:54 +0000)
scrotwm.c
patch
|
blob
|
history
diff --git
a/scrotwm.c
b/scrotwm.c
index
40a7fa3
..
944c4db
100644
(file)
--- a/
scrotwm.c
+++ b/
scrotwm.c
@@
-1170,6
+1170,8
@@
stack_master(struct workspace *ws, struct swm_geometry *g, int rot, int flip)
colno = split;
msize = (r_g.w / SWM_V_SLICE) * mscale;
win_g.w = msize;
colno = split;
msize = (r_g.w / SWM_V_SLICE) * mscale;
win_g.w = msize;
+ if (flip)
+ win_g.x += r_g.w - msize;
} else {
colno = winno;
split = 0;
} else {
colno = winno;
split = 0;
@@
-1182,7
+1184,10
@@
stack_master(struct workspace *ws, struct swm_geometry *g, int rot, int flip)
if (split && i == split) {
colno = winno - split;
hrh = (r_g.h / colno);
if (split && i == split) {
colno = winno - split;
hrh = (r_g.h / colno);
- win_g.x += msize + 2;
+ if (flip)
+ win_g.x = r_g.x;
+ else
+ win_g.x += msize + 2;
win_g.w = r_g.w - (msize + 2);
win_g.h = hrh - 2;
j = 0;
win_g.w = r_g.w - (msize + 2);
win_g.h = hrh - 2;
j = 0;