mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-22 05:48:01 +01:00
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>
This commit is contained in:
committed by
Carlos R. Mafra
parent
41745d98d4
commit
ad84a2dc8f
@@ -522,6 +522,13 @@ extern struct wmaker_global_variables {
|
||||
*/
|
||||
Bool ignore_workspace_change;
|
||||
|
||||
/*
|
||||
* Process WorkspaceMap Event:
|
||||
* this variable is set when the Workspace Map window is being displayed,
|
||||
* it is mainly used to avoid re-opening another one at the same time
|
||||
*/
|
||||
Bool process_workspacemap_event;
|
||||
|
||||
#ifdef HAVE_INOTIFY
|
||||
struct {
|
||||
int fd_event_queue; /* Inotify's queue file descriptor */
|
||||
|
||||
Reference in New Issue
Block a user