>From cadfccd075a8224e03c98dfa9c9c729431258d5f Mon Sep 17 00:00:00 2001 From: Rodolfo García Peñas (kix) <k...@kix.es> Date: Wed, 25 Jan 2012 07:46:49 +0100 Subject: [PATCH 21/24] WindowMaker: ProcessPendingEvents moved to event.h
The function ProcessPendingEvents is moved to the new file event.h. Now the function don't need to be extern. --- src/Makefile.am | 1 + src/actions.c | 2 +- src/event.c | 1 + src/event.h | 1 + src/workspace.c | 2 +- 5 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 src/event.h diff --git a/src/Makefile.am b/src/Makefile.am index 6d2729c..818987b 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -32,6 +32,7 @@ wmaker_SOURCES = \ dockedapp.c \ dock.h \ event.c \ + event.h \ extend_pixmaps.h \ framewin.c \ framewin.h \ diff --git a/src/actions.c b/src/actions.c index 8b654ab..fb88903 100644 --- a/src/actions.c +++ b/src/actions.c @@ -46,10 +46,10 @@ #include "workspace.h" #include "xinerama.h" #include "main.h" +#include "event.h" /****** Global Variables ******/ int ignore_wks_change = 0; -extern void ProcessPendingEvents(); extern int calcIntersectionLength(int p1, int l1, int p2, int l2); static void find_Maximus_geometry(WWindow *wwin, WArea usableArea, int *new_x, int *new_y, diff --git a/src/event.c b/src/event.c index 6cfd627..639167f 100644 --- a/src/event.c +++ b/src/event.c @@ -67,6 +67,7 @@ #include "xinerama.h" #include "wmspec.h" #include "main.h" +#include "event.h" #define MOD_MASK wPreferences.modifier_mask diff --git a/src/event.h b/src/event.h new file mode 100644 index 0000000..8b82223 --- /dev/null +++ b/src/event.h @@ -0,0 +1 @@ +void ProcessPendingEvents(void); diff --git a/src/workspace.c b/src/workspace.c index 53c61c7..a0606c1 100644 --- a/src/workspace.c +++ b/src/workspace.c @@ -48,12 +48,12 @@ #include "appicon.h" #include "wmspec.h" #include "xinerama.h" +#include "event.h" #define MAX_SHORTCUT_LENGTH 32 #define WORKSPACE_NAME_DISPLAY_PADDING 32 extern int ignore_wks_change; -extern void ProcessPendingEvents(); static WMPropList *dWorkspaces = NULL; static WMPropList *dClip, *dName; -- 1.7.2.3 -- ||// //\\// Rodolfo "kix" Garcia ||\\// //\\ http://www.kix.es/
>From cadfccd075a8224e03c98dfa9c9c729431258d5f Mon Sep 17 00:00:00 2001 From: Rodolfo GarcÃa Peñas (kix) <k...@kix.es> Date: Wed, 25 Jan 2012 07:46:49 +0100 Subject: [PATCH 21/24] WindowMaker: ProcessPendingEvents moved to event.h The function ProcessPendingEvents is moved to the new file event.h. Now the function don't need to be extern. --- src/Makefile.am | 1 + src/actions.c | 2 +- src/event.c | 1 + src/event.h | 1 + src/workspace.c | 2 +- 5 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 src/event.h diff --git a/src/Makefile.am b/src/Makefile.am index 6d2729c..818987b 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -32,6 +32,7 @@ wmaker_SOURCES = \ dockedapp.c \ dock.h \ event.c \ + event.h \ extend_pixmaps.h \ framewin.c \ framewin.h \ diff --git a/src/actions.c b/src/actions.c index 8b654ab..fb88903 100644 --- a/src/actions.c +++ b/src/actions.c @@ -46,10 +46,10 @@ #include "workspace.h" #include "xinerama.h" #include "main.h" +#include "event.h" /****** Global Variables ******/ int ignore_wks_change = 0; -extern void ProcessPendingEvents(); extern int calcIntersectionLength(int p1, int l1, int p2, int l2); static void find_Maximus_geometry(WWindow *wwin, WArea usableArea, int *new_x, int *new_y, diff --git a/src/event.c b/src/event.c index 6cfd627..639167f 100644 --- a/src/event.c +++ b/src/event.c @@ -67,6 +67,7 @@ #include "xinerama.h" #include "wmspec.h" #include "main.h" +#include "event.h" #define MOD_MASK wPreferences.modifier_mask diff --git a/src/event.h b/src/event.h new file mode 100644 index 0000000..8b82223 --- /dev/null +++ b/src/event.h @@ -0,0 +1 @@ +void ProcessPendingEvents(void); diff --git a/src/workspace.c b/src/workspace.c index 53c61c7..a0606c1 100644 --- a/src/workspace.c +++ b/src/workspace.c @@ -48,12 +48,12 @@ #include "appicon.h" #include "wmspec.h" #include "xinerama.h" +#include "event.h" #define MAX_SHORTCUT_LENGTH 32 #define WORKSPACE_NAME_DISPLAY_PADDING 32 extern int ignore_wks_change; -extern void ProcessPendingEvents(); static WMPropList *dWorkspaces = NULL; static WMPropList *dClip, *dName; -- 1.7.2.3