summaryrefslogtreecommitdiff
path: root/openbox/event.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@comhem.se>2008-01-16 15:25:08 +0100
committerMikael Magnusson <mikachu@comhem.se>2008-01-16 15:35:25 +0100
commit0be98fee4743c795b06aa23881b82eff5bab3ef6 (patch)
treeb108607acae5fc6298a1a6ed2e1c9354213557e0 /openbox/event.c
parentcafba3acf3ef5b34be867a155ec05b35e82384e9 (diff)
Various fixes for sparse warnings.
Define void functions with (void), not (). Add missing includes. Some functions were declared static but defined non-static. Some variables that should be file static were file global but not used in any other file. prop.h defined a new prop_atoms in each file that included it instead of declaring it extern.
Diffstat (limited to 'openbox/event.c')
-rw-r--r--openbox/event.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/openbox/event.c b/openbox/event.c
index 5d85eaeb..f4ebfa47 100644
--- a/openbox/event.c
+++ b/openbox/event.c
@@ -43,6 +43,7 @@
#include "stacking.h"
#include "extensions.h"
#include "translate.h"
+#include "ping.h"
#include <X11/Xlib.h>
#include <X11/Xatom.h>
@@ -102,8 +103,8 @@ static void focus_delay_client_dest(ObClient *client, gpointer data);
Time event_curtime = CurrentTime;
Time event_last_user_time = CurrentTime;
/*! The serial of the current X event */
-gulong event_curserial;
+static gulong event_curserial;
static gboolean focus_left_screen = FALSE;
/*! A list of ObSerialRanges which are to be ignored for mouse enter events */
static GSList *ignore_serials = NULL;
@@ -1917,7 +1918,7 @@ static void focus_delay_client_dest(ObClient *client, gpointer data)
client, FALSE);
}
-void event_halt_focus_delay()
+void event_halt_focus_delay(void)
{
/* ignore all enter events up till the event which caused this to occur */
if (event_curserial) event_ignore_enter_range(1, event_curserial);