On Wed,  3 Apr 2013 at 20:01:46 +0200, Rodolfo García Peñas (kix) wrote:
> From: "Rodolfo García Peñas (kix)" <k...@kix.es>
> 
> Small code clean at startup.c
> ---
>  src/startup.c |   16 ++++++----------
>  1 file changed, 6 insertions(+), 10 deletions(-)
> 
> diff --git a/src/startup.c b/src/startup.c
> index e0249ee..f9d4e52 100644
> --- a/src/startup.c
> +++ b/src/startup.c
> @@ -415,16 +415,12 @@ WScreen *wScreenForRootWindow(Window window)
>       if (wScreenCount == 1)
>               return wScreen[0];
>  
> -     /*
> -      * Since the number of heads will probably be small (normally 2),
> +     /* Since the number of heads will probably be small (normally 2),
>        * it should be faster to use this than a hash table, because
> -      * of the overhead.
> -      */
> -     for (i = 0; i < wScreenCount; i++) {
> -             if (wScreen[i]->root_win == window) {
> +      * of the overhead. */

I don't care too much about the multiline comment style, but FYI you're
deviating from what's supposed to be wmaker's coding style.

But as I said, I don't care too much. Applied.


-- 
To unsubscribe, send mail to wmaker-dev-unsubscr...@lists.windowmaker.org.

Reply via email to