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 f832d58144a53e8ab3ad20b69ad4dec91181cffe
Author: Kim Woelders <[email protected]>
AuthorDate: Mon Mar 2 16:50:13 2026 +0100
snaps: Cosmetics
---
src/snaps.c | 14 +++++++-------
src/snaps.h | 3 +--
2 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/src/snaps.c b/src/snaps.c
index f297f369..b5c38803 100644
--- a/src/snaps.c
+++ b/src/snaps.c
@@ -1,6 +1,6 @@
/*
* Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
- * Copyright (C) 2004-2022 Kim Woelders
+ * Copyright (C) 2004-2026 Kim Woelders
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
@@ -162,16 +162,16 @@ _SnapEwinMatch(const Snapshot *sn, const EWin *ewin)
if (sn->startup_id && !sn->cmd)
return 0;
- if (sn->match_flags & SNAP_MATCH_TITLE
- && !SEQ(sn->win_title, EwinGetIcccmName(ewin)))
+ if ((sn->match_flags & SNAP_MATCH_TITLE) &&
+ !SEQ(sn->win_title, EwinGetIcccmName(ewin)))
return 0;
- if (sn->match_flags & SNAP_MATCH_NAME
- && !SEQ(sn->win_name, EwinGetIcccmCName(ewin)))
+ if ((sn->match_flags & SNAP_MATCH_NAME) &&
+ !SEQ(sn->win_name, EwinGetIcccmCName(ewin)))
return 0;
- if (sn->match_flags & SNAP_MATCH_CLASS
- && !SEQ(sn->win_class, EwinGetIcccmClass(ewin)))
+ if ((sn->match_flags & SNAP_MATCH_CLASS) &&
+ !SEQ(sn->win_class, EwinGetIcccmClass(ewin)))
return 0;
if (sn->match_flags & SNAP_MATCH_ROLE)
diff --git a/src/snaps.h b/src/snaps.h
index f14b5f85..2bd8de7a 100644
--- a/src/snaps.h
+++ b/src/snaps.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2005-2012 Kim Woelders
+ * Copyright (C) 2005-2026 Kim Woelders
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
@@ -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_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.