wmaker: moved the variable 'process_workspacemap_event' to the global namespace
commitad84a2dc8f59e05502928c8d5d4ab5d92e22321b
authorChristophe CURIS <christophe.curis@free.fr>
Sun, 7 Dec 2014 16:10:15 +0000 (7 17:10 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Wed, 10 Dec 2014 10:19:18 +0000 (10 10:19 +0000)
tree8afec4754c5e6c03cd8d9a0efb0a660f16bedb97
parent41745d98d4bffac57787d6f9105d2c5819f73e79
wmaker: moved the variable 'process_workspacemap_event' to the global namespace

The definition in the local header was not correct; it works because gcc is
tolerant to this kind of errors but other compilers are not. The
declaration was creating a local variable in each file that call header,
and because it is not static gcc's linker will merge them. Other compilers
will at best complain for duplicate symbol, and at worst silently duplicate
the variable so it will not work as expected.

The variable is now moved to the existing structure meant for global
variables, so now the code is really clear about using a global variable
instead of a static/local one.

Took opportunity to add some missing 'static' attributes to some variables.

Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
src/WindowMaker.h
src/workspace.c
src/wsmap.c
src/wsmap.h