From 1b2dbd30fe6e006e9862815e6d37bb9c1b67e5a9 Mon Sep 17 00:00:00 2001 From: speedie Date: Fri, 25 Nov 2022 23:43:57 +0100 Subject: [PATCH] change a few default settings --- docs/example.Xresources | 2 +- keybinds.h | 2 +- options.h | 2 +- speedwm.c | 6 ++---- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/docs/example.Xresources b/docs/example.Xresources index dd6866d..cce60d4 100644 --- a/docs/example.Xresources +++ b/docs/example.Xresources @@ -170,7 +170,7 @@ speedwm.mouse.mousepreview: 1 ! Enable previewing tags by hovering ove !! Rule options -speedwm.rule.refresh: 1 ! Allow rules to be refreshed if a title/class changes (0/1) +speedwm.rule.refresh: 0 ! Allow rules to be refreshed if a title/class changes (0/1) !! Stack options diff --git a/keybinds.h b/keybinds.h index 81ad8e1..92718bd 100644 --- a/keybinds.h +++ b/keybinds.h @@ -78,7 +78,7 @@ static Key keys[] = { { MODIFIER1|CONTROL|SHIFT, -1, XK_s, spawn, cmd( "speedwm-swal" ) }, { MODIFIER1|CONTROL|SHIFT, -1, XK_n, spawn, cmd( "speedwm-netctrl" ) }, { MODIFIER1|CONTROL|SHIFT, -1, XK_b, spawn, cmd( "speedwm-btctrl" ) }, - { MODIFIER1|CONTROL|SHIFT, -1, XK_r, spawn, cmd( "libspeedwm --perform core_wm_reload" ) }, + { MODIFIER1|CONTROL|SHIFT, -1, XK_r, spawn, cmd( "libspeedwm --perform core_wm_restart" ) }, /* System tray */ #if USESYSTRAY diff --git a/options.h b/options.h index baa14f8..3755d29 100644 --- a/options.h +++ b/options.h @@ -85,7 +85,7 @@ static int stackcount = 0; /* Number of clients in the s static int resizehints = 0; /* Show resize hints */ static int decorhints = 1; /* Respect decoration hints */ static int savefloat = 1; /* Save position of floating windows */ -static int refreshrules = 1; /* Refresh rules when a CLASS or TITLE changes */ +static int refreshrules = 0; /* Refresh rules when a CLASS or TITLE changes */ static int i3mastercount = 0; /* Enable i3-gaps like mastercount (1/0) */ static int mousemfact = 1; /* Enable adjusting mfact using the mouse (1/0) */ static int mousecfact = 1; /* Enable adjusting cfact using the mouse (1/0) */ diff --git a/speedwm.c b/speedwm.c index c43856d..fd54d6b 100644 --- a/speedwm.c +++ b/speedwm.c @@ -4899,7 +4899,8 @@ propertynotify(XEvent *e) } if (ev->atom == XA_WM_NAME || ev->atom == netatom[NetWMName]) { updatetitle(c); - updaterules(c); + + if (refreshrules) updaterules(c); if (c == c->mon->sel && !selmon->hidetitle) drawbaritems(c->mon); } @@ -6793,8 +6794,6 @@ updatestatus(void) void updaterules(Client *c) { - if (refreshrules) - { const char *class, *instance; unsigned int i; const Rule *r; @@ -6838,7 +6837,6 @@ updaterules(Client *c) resize(c, c->x, c->y, c->w, c->h, 0); arrange(c->mon); - } } void