#include <glib.h>
/* Array of array of monitors of edges: edge[monitor 2][top edge] */
-ObEdge ***edge;
+ObEdge ***edge = NULL;
#warning put in config.c and parse configs of course
gboolean config_edge_enabled[OB_NUM_EDGES] = {1, 1, 1, 1, 1, 1, 1, 1};
/* this could change at runtime, we should hook into that, but for now
* don't crash on reconfigure/shutdown */
-static edge_monitors;
+static guint edge_monitors;
#ifdef DEBUG
#define EDGE_WIDTH 10
{
gint i, m;
+ /* This is in case we get called before startup by screen_resize() */
+ if (!edge)
+ return;
+
for (m = 0; m < edge_monitors; m++) {
for (i = 0; i < OB_NUM_EDGES; i++) {
if (!config_edge_enabled[i])
}
g_slice_free1(sizeof(ObEdge**) * edge_monitors, edge);
}
+
+void edges_configure()
+{
+ edges_shutdown(TRUE);
+ edges_startup(TRUE);
+}
#include "debug.h"
#include "openbox.h"
#include "dock.h"
+#include "edges.h"
#include "grab.h"
#include "startupnotify.h"
#include "moveresize.h"
/* this calls screen_update_areas(), which we need ! */
dock_configure();
+ edges_configure();
for (it = client_list; it; it = g_list_next(it)) {
client_move_onscreen(it->data, FALSE);