Removing redundant statuscmds logic when both statuscmd and dwmblocks patches are applied

This commit is contained in:
bakkeby
2020-05-05 19:50:28 +02:00
parent 75d5f1e0c5
commit 91291ceb9f
3 changed files with 11 additions and 9 deletions

View File

@@ -690,11 +690,11 @@ static const char *dmenucmd[] = {
};
static const char *termcmd[] = { "st", NULL };
#if STATUSCMD_PATCH
#if STATUSCMD_PATCH && !DWMBLOCKS_PATCH
/* commands spawned when clicking statusbar, the mouse button pressed is exported as BUTTON */
static const char *statuscmds[] = { "notify-send Mouse$BUTTON" };
static char *statuscmd[] = { "/bin/sh", "-c", NULL, NULL };
#endif // STATUSCMD_PATCH
#endif // STATUSCMD_PATCH | DWMBLOCKS_PATCH
#if SCRATCHPAD_ALT_1_PATCH
static const unsigned scratchpad_mask = 1u << sizeof tags / sizeof * tags;