From e4342df390ae7873e224fb29e8d9838db1cdb448 Mon Sep 17 00:00:00 2001 From: Vedant Sule Date: Fri, 2 Oct 2026 18:25:19 +0100 Subject: [PATCH] Add issticky to rules[] and apply it in applyrules --- config.def.h | 7 ++++--- dwm.c | 2 ++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/config.def.h b/config.def.h index c243414..c856376 100644 --- a/config.def.h +++ b/config.def.h @@ -26,9 +26,10 @@ static const Rule rules[] = { * WM_CLASS(STRING) = instance, class * WM_NAME(STRING) = title */ - /* class instance title tags mask isfloating monitor */ - { "Gimp", NULL, NULL, 0, 1, -1 }, - { "Firefox", NULL, NULL, 1 << 8, 0, -1 }, + /* class instance title tags mask isfloating issticky monitor */ + { "Gimp", NULL, NULL, 0, 1, 0, -1 }, + { "Firefox", NULL, NULL, 1 << 8, 0, 0, -1 }, + { "Dragon", NULL, NULL, 0, 0, 1, -1 }, }; /* layout(s) */ diff --git a/dwm.c b/dwm.c index a9cf1bf..34207a5 100644 --- a/dwm.c +++ b/dwm.c @@ -137,6 +137,7 @@ typedef struct { const char *title; unsigned int tags; int isfloating; + int issticky; int monitor; } Rule; @@ -300,6 +301,7 @@ applyrules(Client *c) { c->isfloating = r->isfloating; c->tags |= r->tags; + setsticky(c, r->issticky); for (m = mons; m && m->num != r->monitor; m = m->next); if (m) c->mon = m; -- 2.55.0