From 116568141ebeaa850dcb6475cf9ea32fe366286d Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Tue, 16 Nov 2021 02:27:09 +0500 Subject: [PATCH] Specify WM name --- config.def.h | 2 ++ dwm.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config.def.h b/config.def.h index 7836712..6c2f9d9 100644 --- a/config.def.h +++ b/config.def.h @@ -1,5 +1,7 @@ /* See LICENSE file for copyright and license details. */ +static const char wm_name[] = "PolytreeWM"; + /* appearance */ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ diff --git a/dwm.c b/dwm.c index 612c9de..96e409a 100644 --- a/dwm.c +++ b/dwm.c @@ -2136,8 +2136,8 @@ setup(void) 8, PropModeReplace, (unsigned char*) - "polytreewm", - 3 + wm_name, + strlen(wm_name) ); XChangeProperty( dpy,