Fix some compiler warnings for ShowMenu
authorMikael Magnusson <mikachu@gmail.com>
Tue, 28 Oct 2014 04:45:09 +0000 (05:45 +0100)
committerMikael Magnusson <mikachu@gmail.com>
Tue, 28 Oct 2014 04:45:09 +0000 (05:45 +0100)
openbox/actions/showmenu.c

index 8151db5..0fdd8be 100644 (file)
@@ -3,6 +3,7 @@
 #include "openbox/place.h"
 #include "openbox/geom.h"
 #include "openbox/screen.h"
 #include "openbox/place.h"
 #include "openbox/geom.h"
 #include "openbox/screen.h"
+#include "openbox/config.h"
 #include <glib.h>
 
 typedef struct {
 #include <glib.h>
 
 typedef struct {
@@ -82,7 +83,7 @@ static void free_func(gpointer options)
 static gboolean run_func(ObActionsData *data, gpointer options)
 {
     Options *o = options;
 static gboolean run_func(ObActionsData *data, gpointer options)
 {
     Options *o = options;
-    GravityPoint position = { 0, };
+    GravityPoint position = { { 0, }, };
     gint monitor = -1;
 
     if (o->use_position) {
     gint monitor = -1;
 
     if (o->use_position) {