This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository e16.
View the commit online.
commit c125f8457febe305aae5798857843a830ea03971
Author: Kim Woelders <[email protected]>
AuthorDate: Mon Mar 2 19:15:41 2026 +0100
snaps: Drop never used SNAP_MATCH_MULTIPLE
---
src/snaps.c | 12 ++++--------
src/snaps.h | 1 -
2 files changed, 4 insertions(+), 9 deletions(-)
diff --git a/src/snaps.c b/src/snaps.c
index b5c38803..751470ee 100644
--- a/src/snaps.c
+++ b/src/snaps.c
@@ -229,7 +229,7 @@ _SnapEwinFind(EWin *ewin)
if (!sn)
sn = LIST_FIND(Snapshot, &ss_list, _SnapEwinFindMatch, ewin);
- if (sn && !(sn->match_flags & SNAP_MATCH_MULTIPLE))
+ if (sn)
{
sn->used = ewin;
ewin->snap = sn;
@@ -297,11 +297,8 @@ _SnapEwinGet(EWin *ewin, unsigned int match_flags)
Esnprintf(buf, sizeof(buf), "TITLE.%s", EwinGetIcccmName(ewin));
sn->name = Estrdup(buf);
- if (!(sn->match_flags & SNAP_MATCH_MULTIPLE))
- {
- sn->used = ewin;
- ewin->snap = sn;
- }
+ sn->used = ewin;
+ ewin->snap = sn;
return sn;
}
@@ -1170,8 +1167,7 @@ SnapshotsSpawn(void)
LIST_FOR_EACH(Snapshot, &ss_list, sn)
{
- if ((sn->use_flags & SNAP_USE_COMMAND) && (sn->cmd) &&
- !sn->used && !(sn->match_flags & SNAP_MATCH_MULTIPLE))
+ if ((sn->use_flags & SNAP_USE_COMMAND) && (sn->cmd) && !sn->used)
{
sn->startup_id = ++Mode.apps.startup_id;
Espawn("%s", sn->cmd);
diff --git a/src/snaps.h b/src/snaps.h
index 2bd8de7a..626d5b25 100644
--- a/src/snaps.h
+++ b/src/snaps.h
@@ -29,7 +29,6 @@
#define SNAP_MATCH_NAME (1 << 1)
#define SNAP_MATCH_CLASS (1 << 2)
#define SNAP_MATCH_ROLE (1 << 3)
-#define SNAP_MATCH_MULTIPLE (1 << 8)
#define SNAP_MATCH_DEFAULT (SNAP_MATCH_NAME | SNAP_MATCH_CLASS | SNAP_MATCH_ROLE)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.