Re: [dwm] [patch] Minor code cleanup

From: Anselm R Garbe <garbeam_AT_gmail.com>
Date: Mon, 18 Aug 2008 09:50:36 +0100

Applied.

Thanks,
Anselm

2008/8/12 Martin Hurton <martin.hurton_AT_gmail.com>:
> Hi,
>
> the following patch slightly simplifies the view function plus
> fixes some spelling errors. Comments are highly appreciated.
>
> Cheers,
> /Martin
>
> diff -r 65c37b4be9cb dwm.c
> --- a/dwm.c Mon Aug 04 17:39:36 2008 +0100
> +++ b/dwm.c Tue Aug 12 19:05:53 2008 +0200
> @@ -1640,11 +1640,11 @@
>
> void
> view(const Arg *arg) {
> - if(arg && (arg->i & TAGMASK) == tagset[seltags])
> + if((arg->ui & TAGMASK) == tagset[seltags])
> return;
> seltags ^= 1; /* toggle sel tagset */
> - if(arg && (arg->ui & TAGMASK))
> - tagset[seltags] = arg->i & TAGMASK;
> + if(arg->ui & TAGMASK)
> + tagset[seltags] = arg->ui & TAGMASK;
> clearurgent();
> arrange();
> }
Received on Mon Aug 18 2008 - 08:50:36 UTC

This archive was generated by hypermail 2.2.0 : Mon Aug 18 2008 - 09:00:04 UTC