X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=scrotwm.c;h=944c4db804ab5847646d45531fae85de9b781fb9;hb=5bdf52a032835ea7fa7dce6f2a7e3520025f0d66;hp=40a7fa30dd213ccfda7b238c726d48489123e8ef;hpb=f92c9ed0722e69ac05da2af5ffc0cef2ee112641;p=spectrwm.git 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;