summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@comhem.se>2006-08-19 05:05:36 +0000
committerMikael Magnusson <mikachu@comhem.se>2006-08-19 05:05:36 +0000
commit005eb35ee810fbc1edc31a83f298866067be6ef9 (patch)
treeb8f85951aaeb3d62d6a3874ada0451df38f48faa /openbox
parentc495ecfefff3b07810cb2abed69ceed7a1350b37 (diff)
fix some warnings from -Wall
Diffstat (limited to 'openbox')
-rw-r--r--openbox/action.c1
-rw-r--r--openbox/menuframe.c2
-rw-r--r--openbox/stacking.c3
3 files changed, 4 insertions, 2 deletions
diff --git a/openbox/action.c b/openbox/action.c
index 05a9e640..c0195dd8 100644
--- a/openbox/action.c
+++ b/openbox/action.c
@@ -29,6 +29,7 @@
#include "grab.h"
#include "keyboard.h"
#include "event.h"
+#include "dock.h"
#include "config.h"
#include "mainloop.h"
diff --git a/openbox/menuframe.c b/openbox/menuframe.c
index 120f4c38..62a68ae9 100644
--- a/openbox/menuframe.c
+++ b/openbox/menuframe.c
@@ -23,6 +23,7 @@
#include "screen.h"
#include "grab.h"
#include "openbox.h"
+#include "mainloop.h"
#include "config.h"
#include "render/theme.h"
@@ -189,7 +190,6 @@ void menu_frame_move(ObMenuFrame *self, gint x, gint y)
void menu_frame_move_on_screen(ObMenuFrame *self)
{
Rect *a = NULL;
- guint i;
gint dx = 0, dy = 0;
gint pos, half;
diff --git a/openbox/stacking.c b/openbox/stacking.c
index 714d2a1c..bedc10c8 100644
--- a/openbox/stacking.c
+++ b/openbox/stacking.c
@@ -56,11 +56,12 @@ void stacking_set_list()
static void do_restack(GList *wins, GList *before)
{
- GList *it, *next;
+ GList *it;
Window *win;
gint i;
#ifdef DEBUG
+ GList *next;
/* pls only restack stuff in the same layer at a time */
for (it = wins; it; it = next) {
next = g_list_next(it);