Osei Poku wrote:
> cfdata->border->lock_client_maximize = 1;
> cfdata->border->lock_client_fullscreen = 1;
> }
> + else
> + {
> + cfdata->border->lock_client_location = 0;
> + cfdata->border->lock_client_size = 0;
> + cfdata->border->lock_client_stacking = 0;
> + cfdata->border->lock_client_iconify = 0;
> + cfdata->border->lock_client_desk = 0;
> + cfdata->border->lock_client_sticky = 0;
> + cfdata->border->lock_client_shade = 0;
> + cfdata->border->lock_client_maximize = 0;
> + cfdata->border->lock_client_fullscreen = 0;
> + }
don't know about you, but I like to eliminate duplicate code..
so, to me, it seems it would be better to use an intermittent variable..
val = (foo) ? 1 : 0;
.... = val;
.... = val;
......
val = (bar) ? 1 : 0;
etc..
--
Cheers,
Morten
:wq
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel