From 8e28298a0bc10b551879a1fc4aa62d7d49f4516e Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Sun, 10 Feb 2008 08:00:06 +0100 Subject: [PATCH] Be less annoying when not debugging. --- openbox/edges.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/openbox/edges.c b/openbox/edges.c index f5b3d987..d0f38a2f 100644 --- a/openbox/edges.c +++ b/openbox/edges.c @@ -11,8 +11,13 @@ ObEdge *edge[OB_NUM_EDGES]; #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}; +#ifdef DEBUG #define EDGE_WIDTH 10 #define CORNER_SIZE 20 +#else +#define EDGE_WIDTH 1 +#define CORNER_SIZE 2 +#endif static void get_position(ObEdgeLocation edge, Rect screen, Rect *rect) { switch (edge) { @@ -76,8 +81,10 @@ void edges_startup(gboolean reconfigure) stacking_add(INTERNAL_AS_WINDOW(edge[i])); window_add(&edge[i]->win, INTERNAL_AS_WINDOW(edge[i])); +#ifdef DEBUG printf("mapped edge window %i at %03i %03i %02i %02i\n", i, r.x, r.y, r.width, r.height); fflush(stdout); +#endif } XFlush(obt_display); -- 2.34.1