forwarded 782642 [email protected]
thanks

* Sébastien Poher <[email protected]> [2015-04-15 16:08 +0200]:

> Package: moc
> Version: 1:2.5.0-1
> Severity: minor
> Tags: patch
> 
> Dear Maintainer,
> 
> *** Reporter, please consider answering these questions, where appropriate ***
> 
>    * What led up to the situation?
> When moc is resized, for example when using a tilling window manager, it
> dislays "terminal's too small" while the terminal size is still big enough to
> display moc correctly.
> I think that the threshold of lines and columns size is too high so I changed
> them. With this values I got the "terminal's too small" mention only when it
> gets really too small.

[...]

Forwarded upstream.

> 
> *** /home/sogal/moc_interfaces_elements.c.diff
> --- interface_elements.c.orig   2015-04-15 15:40:16.594245182 +0200
> +++ interface_elements.c        2015-04-15 15:44:57.574249398 +0200
> @@ -2529,7 +2529,7 @@
>  /* End the program if the terminal is too small. */
>  static void check_term_size (struct main_win *mw, struct info_win *iw)
>  {
> -       mw->too_small = iw->too_small = COLS < 59 || LINES < 7;
> +       mw->too_small = iw->too_small = COLS < 30 || LINES < 5;
>  }
> 
>  /* Update the title with the current fill. */
> @@ -2770,7 +2770,7 @@
> 
>         bar_set_title (&w->mixer_bar, name);
>         if (!w->in_entry && !w->too_small) {
> -               bar_draw (&w->mixer_bar, w->win, COLS - 37, 0);
> +               bar_draw (&w->mixer_bar, w->win, COLS - 27, 0);
>                 info_win_update_curs (w);
>         }
>  }
> @@ -3085,7 +3085,7 @@
> 
>         bar_set_fill (&w->mixer_bar, (double) value);
>         if (!w->in_entry && !w->too_small)
> -               bar_draw (&w->mixer_bar, w->win, COLS - 37, 0);
> +               bar_draw (&w->mixer_bar, w->win, COLS - 27, 0);
>  }
> 
>  /* Draw a switch that is turned on or off in form of [TITLE]. */
> @@ -3398,7 +3398,7 @@
>                                 lines.ltee, lines.rtee, lines.llcorn,
> lines.lrcorn);
> 
>                 /* mixer frame */
> -               mvwaddch (w->win, 0, COLS - 38, lines.rtee);
> +               mvwaddch (w->win, 0, COLS - 28, lines.rtee);
>                 mvwaddch (w->win, 0, COLS - 17, lines.ltee);
> 
>                 /* playlist time frame */
> @@ -3448,7 +3448,7 @@
>                 if (w->in_entry)
>                         entry_draw (&w->entry, w->win, 1, 0);
>                 else
> -                       bar_draw (&w->mixer_bar, w->win, COLS - 37, 0);
> +                       bar_draw (&w->mixer_bar, w->win, COLS - 27, 0);


-- 
 "Talking much about oneself can also
   be a means to conceal oneself."
         -Friedrich Nietzsche


--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to