Commit Diff


commit - defd1200988603f9e9aabca89eef453ab39a43e5
commit + 13d71a1a51a38cf24ca37454e7b6717207f7daf2
blob - 9daacba93abb8bce7f9d8681b016ad10d8ce757d
blob + 6010b784bfbf00ab3a4c13c34fae95517029efab
--- bxnotify.c
+++ bxnotify.c
@@ -45,6 +45,7 @@ static int cfg_win_x = WIN_X;
 static int cfg_win_y = WIN_Y;
 static int cfg_padding = PADDING;
 static int cfg_border_width = BORDER_WIDTH;
+static int cfg_stack_gap = STACK_GAP;
 static int cfg_align = ALIGN;
 static int cfg_duration = DURATION;
 static const char *cfg_fg = FG_COLOR;
@@ -275,7 +276,7 @@ get_and_register_stack_y(int my_h)
         }
 
         /* 2. Calculate our Y position */
-        my_y = (lowest_y > 0) ? lowest_y + 16 : cfg_win_y;
+        my_y = (lowest_y > 0) ? lowest_y + cfg_stack_gap : cfg_win_y;
 
         /* 3. Clear file and rewrite with valid PIDs + our new one */
         ftruncate(fd, 0); /* Erase file contents */
blob - 7dd60af2849bf5f067ed6da6840940154f260ae7
blob + eb4b7c67ec56f39af16d7795e0efeae2ec64c91b
--- config.def.h
+++ config.def.h
@@ -9,6 +9,7 @@
 #define WIN_Y           32    /* Below status bar */
 #define PADDING         6
 #define BORDER_WIDTH    2
+#define STACK_GAP       16
 #define BORDER_COLOR    "#555555"
 #define FG_COLOR        "#ffffff"
 #define BG_COLOR        "#000000"