From: "Rodolfo García Peñas (kix)" <[email protected]>

The file event.h includes the function prototypes for event.c.

The prototypes included were moved from funcs.h.

Signed-off-by: Rodolfo García Peñas (kix) <[email protected]>
---
 src/Makefile.am |    1 +
 src/actions.c   |    1 +
 src/appicon.c   |    1 +
 src/defaults.c  |    1 +
 src/dock.c      |    1 +
 src/event.c     |    1 +
 src/event.h     |   31 +++++++++++++++++++++++++++++++
 src/framewin.c  |    1 +
 src/funcs.h     |    9 ---------
 src/icon.c      |    1 +
 src/main.c      |    1 +
 src/startup.c   |    1 +
 src/workspace.c |    1 +
 13 files changed, 42 insertions(+), 9 deletions(-)
 create mode 100644 src/event.h

diff --git a/src/Makefile.am b/src/Makefile.am
index 2415080..dc4d9ad 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -35,6 +35,7 @@ wmaker_SOURCES =      \
        dockedapp.h \
        dock.h \
        event.c \
+       event.h \
        extend_pixmaps.h \
        framewin.c \
        framewin.h \
diff --git a/src/actions.c b/src/actions.c
index 17046cf..8de65f2 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -48,6 +48,7 @@
 #include "usermenu.h"
 #include "placement.h"
 #include "misc.h"
+#include "event.h"
 
 /****** Global Variables ******/
 
diff --git a/src/appicon.c b/src/appicon.c
index d6d8164..f863974 100644
--- a/src/appicon.c
+++ b/src/appicon.c
@@ -49,6 +49,7 @@
 #include "client.h"
 #include "placement.h"
 #include "misc.h"
+#include "event.h"
 #ifdef XDND
 #include "xdnd.h"
 #endif
diff --git a/src/defaults.c b/src/defaults.c
index 8d2fe22..2ffe4d9 100644
--- a/src/defaults.c
+++ b/src/defaults.c
@@ -62,6 +62,7 @@
 #include "workspace.h"
 #include "properties.h"
 #include "misc.h"
+#include "event.h"
 
 #define MAX_SHORTCUT_LENGTH 32
 
diff --git a/src/dock.c b/src/dock.c
index 7f277c5..15d1679 100644
--- a/src/dock.c
+++ b/src/dock.c
@@ -56,6 +56,7 @@
 #include "xinerama.h"
 #include "placement.h"
 #include "misc.h"
+#include "event.h"
 
 /**** Local variables ****/
 #define CLIP_REWIND       1
diff --git a/src/event.c b/src/event.c
index ea130f1..b81bb88 100644
--- a/src/event.c
+++ b/src/event.c
@@ -72,6 +72,7 @@
 #include "screen.h"
 #include "shutdown.h"
 #include "misc.h"
+#include "event.h"
 
 /******** Global Variables **********/
 extern XContext wWinContext;
diff --git a/src/event.h b/src/event.h
new file mode 100644
index 0000000..33a7a05
--- /dev/null
+++ b/src/event.h
@@ -0,0 +1,31 @@
+/*
+ *  Window Maker window manager
+ *
+ *  Copyright (c) 1997-2003 Alfredo K. Kojima
+ *  Copyright (c) 2013 Window Maker Team
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License along
+ *  with this program; if not, write to the Free Software Foundation, Inc.,
+ *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#ifndef WMEVENT_H
+#define WMEVENT_H
+
+void EventLoop(void);
+void DispatchEvent(XEvent *event);
+void ProcessPendingEvents(void);
+WMagicNumber wAddDeathHandler(pid_t pid, WDeathHandler *callback, void *cdata);
+Bool IsDoubleClick(WScreen *scr, XEvent *event);
+
+#endif /* WMEVENT_H */
diff --git a/src/framewin.c b/src/framewin.c
index 39f55d6..40fd2a3 100644
--- a/src/framewin.c
+++ b/src/framewin.c
@@ -40,6 +40,7 @@
 #include "framewin.h"
 #include "stacking.h"
 #include "misc.h"
+#include "event.h"
 
 #define DBLCLICK_TIME wPreferences.dblclick_time
 
diff --git a/src/funcs.h b/src/funcs.h
index 21c37aa..678c6a4 100644
--- a/src/funcs.h
+++ b/src/funcs.h
@@ -32,15 +32,6 @@ typedef void (WCallBack)(void *cdata);
 typedef void (WDeathHandler)(pid_t pid, unsigned int status, void *cdata);
 
 
-/* ---[ event.c ]--------------------------------------------------------- */
-
-void EventLoop(void);
-void DispatchEvent(XEvent *event);
-void ProcessPendingEvents(void);
-WMagicNumber wAddDeathHandler(pid_t pid, WDeathHandler *callback, void *cdata);
-Bool IsDoubleClick(WScreen *scr, XEvent *event);
-
-
 /* ---[ main.c ]---------------------------------------------------------- */
 
 int getWVisualID(int screen);
diff --git a/src/icon.c b/src/icon.c
index a6bbca6..b292c88 100644
--- a/src/icon.c
+++ b/src/icon.c
@@ -45,6 +45,7 @@
 #include "wmspec.h"
 #include "misc.h"
 #include "startup.h"
+#include "event.h"
 
 /**** Global varianebles ****/
 extern WPreferences wPreferences;
diff --git a/src/main.c b/src/main.c
index 777363a..11cbded 100644
--- a/src/main.c
+++ b/src/main.c
@@ -46,6 +46,7 @@
 #include "WindowMaker.h"
 #include "window.h"
 #include "funcs.h"
+#include "event.h"
 #include "startup.h"
 #include "menu.h"
 #include "keybind.h"
diff --git a/src/startup.c b/src/startup.c
index 1d82c2a..414ce0c 100644
--- a/src/startup.c
+++ b/src/startup.c
@@ -66,6 +66,7 @@
 #include "properties.h"
 #include "dialog.h"
 #include "wmspec.h"
+#include "event.h"
 #ifdef XDND
 #include "xdnd.h"
 #endif
diff --git a/src/workspace.c b/src/workspace.c
index ab79e68..a48fe90 100644
--- a/src/workspace.c
+++ b/src/workspace.c
@@ -48,6 +48,7 @@
 #include "appicon.h"
 #include "wmspec.h"
 #include "xinerama.h"
+#include "event.h"
 
 #define MC_NEW          0
 #define MC_DESTROY_LAST 1
-- 
1.7.10.4


-- 
To unsubscribe, send mail to [email protected].

Reply via email to