[compiz] gtk-window-decorator - unneeded MAX ()
Joel Bosveld
joel.bosveld at gmail.com
Thu Mar 20 01:20:21 PDT 2008
Hi, it seems to me that line gtk-window-decorator.c:3324 could be written as
"top_width = w;" as w will always me the maximum, due to line 3319.
3319 if (w < ICON_SPACE + d->button_width)
3320 return FALSE;
3321
3322 top_width = name_width + d->button_width + ICON_SPACE;
3323 if (w < top_width)
3324 top_width = MAX (ICON_SPACE + d->button_width, w);
- Joel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/compiz/attachments/20080320/76981a58/attachment.html
More information about the compiz
mailing list