On Mon,  8 Dec 2014 at 16:28:14 +0100, Rodolfo García Peñas wrote:
> On Mon, 08 Dec 2014, Carlos R. Mafra escribió:
> 
> > On Mon,  8 Dec 2014 at 13:36:25 +0100, Rodolfo García Peñas wrote:
> > > Hi,
> > > 
> > > I have a question about the variable "nopolling". Is used? Could we 
> > > remove it?
> > > 
> > > I found it in src/startup.c, but the variable is never set. I am missing 
> > > something?
> > > 
> > > Thanks,
> > > kix
> > > 
> > > kix@debian:~/src/wmaker/awmaker$ rgrep nopolling *
> > > NEWS:Running Window Maker with one of -nopolling or --no-polling command 
> > > line
> > > src/startup.c:  if (!wPreferences.flags.nopolling && 
> > > !wPreferences.flags.noupdates)
> > > src/WindowMaker.h:              unsigned int nopolling:1;             /* 
> > > don't poll the defaults database for changes */
> > > kix@debian:~/src/wmaker/awmaker$
> > 
> > [mafra@linux-g29b:wmaker.git]$ git grep -B 2 nopolling
> > NEWS----------------------------------
> > NEWS-
> > NEWS:Running Window Maker with one of -nopolling or --no-polling command 
> > line
> > --
> > src/WindowMaker.h-                unsigned int norestore:1;             /* 
> > don't restore session */
> > src/WindowMaker.h-#ifndef HAVE_INOTIFY
> > src/WindowMaker.h:                unsigned int nopolling:1;             /* 
> > don't poll the defaults database f
> > or changes */
> > --
> > src/startup.c-#ifndef HAVE_INOTIFY
> > src/startup.c-    /* setup defaults file polling */
> > src/startup.c:    if (!wPreferences.flags.nopolling && 
> > !wPreferences.flags.noupdates)
> > [mafra@linux-g29b:wmaker.git]$
> 
> Yes, but the variable is never set, therefore the "if" in src/startup.c is 
> always true. IMO we can remove this variable.

I see. The issue here seems to be that the command line option "--no-polling"
sets the variable noupdates instead of nopolling (see src/main.c).

In principle these two variables should be distinct, I'm not sure
if we can actually merge the two concepts.


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

Reply via email to