summaryrefslogtreecommitdiff
path: root/dwm/dwm.c
diff options
context:
space:
mode:
authorauric <auric7@protonmail.com>2025-09-07 19:31:01 -0500
committerauric <auric7@protonmail.com>2025-09-07 19:31:01 -0500
commit928fa0e6de290180bfa52eb33448ccdd44c116cc (patch)
treec1effcfd63f6be9b81bc71c992e8084082f8b0a1 /dwm/dwm.c
parent54b41bddc00449b446b0f9dbddb037954cd6a265 (diff)
Re-fix duplicated code which broke compilation of dwm
Diffstat (limited to 'dwm/dwm.c')
-rw-r--r--dwm/dwm.c40
1 files changed, 1 insertions, 39 deletions
diff --git a/dwm/dwm.c b/dwm/dwm.c
index 8eccf8f..7a95f93 100644
--- a/dwm/dwm.c
+++ b/dwm/dwm.c
@@ -48,6 +48,7 @@
#include "drw.h"
#include "util.h"
+#include "../accent.h"
/* macros */
#define BUTTONMASK (ButtonPressMask|ButtonReleaseMask)
@@ -287,45 +288,6 @@ static Window root, wmcheckwin;
/* tag used for scratchpad clients */
static const unsigned int scratchtag = 1 << LENGTH(tags);
-#define SHMNAME "/breathing_color_shm"
-typedef struct {
- uint32_t magic;
- uint32_t version;
- volatile uint32_t seq;
- char color[8];
-} ColorShm;
-
-/* state for the shared accent color */
-static ColorShm *accentshm;
-static char accentcol[8] = "#005577";
-
-#ifndef BAROPACITY
-#define BAROPACITY 1.0
-#endif
-
-/* tag used for scratchpad clients */
-static const unsigned int scratchtag = 1 << LENGTH(tags);
-
-#define SHMNAME "/breathing_color_shm"
-typedef struct {
- uint32_t magic;
- uint32_t version;
- volatile uint32_t seq;
- char color[8];
-} ColorShm;
-
-/* state for the shared accent color */
-static ColorShm *accentshm;
-static char accentcol[8] = "#005577";
-
-#ifndef BAROPACITY
-#define BAROPACITY 1.0
-#endif
-
-/* tag used for scratchpad clients */
-static const unsigned int scratchtag = 1 << LENGTH(tags);
-
-#include "../accent.h"
/* state for the shared accent color */
static ColorShm *accentshm;