Lines Matching defs:sx

131 	u_int			 n, sx, sy;
144 sx = (n * (PANE_MINIMUM + 1)) - 1;
145 if (sx < w->sx)
146 sx = w->sx;
152 sx = w->sx;
154 layout_set_size(lc, sx, sy, 0, 0);
161 lcnew->sx = w->sx;
175 window_resize(w, lc->sx, lc->sy, -1, -1);
197 u_int n, mainh, otherh, sx, sy;
240 sx = (n * (PANE_MINIMUM + 1)) - 1;
241 if (sx < w->sx)
242 sx = w->sx;
247 layout_set_size(lc, sx, mainh + otherh + 1, 0, 0);
252 layout_set_size(lcmain, sx, mainh, 0, 0);
258 layout_set_size(lcother, sx, otherh, 0, 0);
285 window_resize(w, lc->sx, lc->sy, -1, -1);
295 u_int n, mainh, otherh, sx, sy;
338 sx = (n * (PANE_MINIMUM + 1)) - 1;
339 if (sx < w->sx)
340 sx = w->sx;
345 layout_set_size(lc, sx, mainh + otherh + 1, 0, 0);
350 layout_set_size(lcother, sx, otherh, 0, 0);
373 layout_set_size(lcmain, sx, mainh, 0, 0);
383 window_resize(w, lc->sx, lc->sy, -1, -1);
393 u_int n, mainw, otherw, sx, sy;
406 sx = w->sx - 1;
410 mainw = args_string_percentage(s, 0, sx, sx, &cause);
417 if (mainw + PANE_MINIMUM >= sx) {
418 if (sx <= PANE_MINIMUM + PANE_MINIMUM)
421 mainw = sx - PANE_MINIMUM;
425 otherw = args_string_percentage(s, 0, sx, sx, &cause);
427 otherw = sx - mainw;
429 } else if (otherw > sx || sx - otherw < mainw)
430 otherw = sx - mainw;
432 mainw = sx - otherw;
481 window_resize(w, lc->sx, lc->sy, -1, -1);
491 u_int n, mainw, otherw, sx, sy;
504 sx = w->sx - 1;
508 mainw = args_string_percentage(s, 0, sx, sx, &cause);
515 if (mainw + PANE_MINIMUM >= sx) {
516 if (sx <= PANE_MINIMUM + PANE_MINIMUM)
519 mainw = sx - PANE_MINIMUM;
523 otherw = args_string_percentage(s, 0, sx, sx, &cause);
525 otherw = sx - mainw;
527 } else if (otherw > sx || sx - otherw < mainw)
528 otherw = sx - mainw;
530 mainw = sx - otherw;
579 window_resize(w, lc->sx, lc->sy, -1, -1);
589 u_int n, width, height, used, sx, sy;
608 width = (w->sx - (columns - 1)) / columns;
618 sx = ((width + 1) * columns) - 1;
619 if (sx < w->sx)
620 sx = w->sx;
624 layout_set_size(lc, sx, sy, 0, 0);
636 layout_set_size(lcrow, w->sx, height, 0, 0);
667 if (w->sx <= used)
671 w->sx - used);
688 window_resize(w, lc->sx, lc->sy, -1, -1);