From 5bdf52a032835ea7fa7dce6f2a7e3520025f0d66 Mon Sep 17 00:00:00 2001 From: Ryan McBride Date: Sun, 25 Jan 2009 10:54:16 +0000 Subject: [PATCH] Support placing the master area on the opposite side. --- scrotwm.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scrotwm.c b/scrotwm.c index 40a7fa3..944c4db 100644 --- 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; + if (flip) + win_g.x += r_g.w - msize; } 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); - 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; -- 1.7.10.4