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 1f2700aae6303884f2aea50eb1e9bfb1470de746
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Fri Jun 10 12:18:01 2022 +0200

    Introduce EobjSetName()
---
 src/eobj.c | 9 +++++++++
 src/eobj.h | 1 +
 2 files changed, 10 insertions(+)

diff --git a/src/eobj.c b/src/eobj.c
index eed59f17..2c2c204e 100644
--- a/src/eobj.c
+++ b/src/eobj.c
@@ -78,6 +78,15 @@ EobjGetNameSafe(const EObj * eo)
    return name ? name : "None";
 }
 
+void
+EobjSetName(EObj * eo, const char *name)
+{
+   if (name != eo->icccm.wm_name)
+      EFREE_DUP(eo->icccm.wm_name, name);
+
+   HintsSetWindowName(EobjGetWin(eo), eo->icccm.wm_name);
+}
+
 void
 EobjSetLayer(EObj * eo, int layer)
 {
diff --git a/src/eobj.h b/src/eobj.h
index c3ec75a3..c6c4f82e 100644
--- a/src/eobj.h
+++ b/src/eobj.h
@@ -185,6 +185,7 @@ struct _glhook     *EobjGetTexture(EObj * eo);
 void                EobjChangeOpacityNow(EObj * eo, unsigned int opacity);
 void                EobjChangeOpacity(EObj * eo, unsigned int opacity);
 void                EobjChangeShadow(EObj * eo, int shadow);
+void                EobjSetName(EObj * eo, const char *name);
 void                EobjSetLayer(EObj * eo, int layer);
 void                EobjSetFloating(EObj * eo, int floating);
 bool                EobjShadowOk(const EObj * eo, bool sharp);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to