This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository legacy-imlib2.
View the commit online.
commit 6ec1d72f2c76b761851b00d7d2a1ba011244f7c7
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Sat Jan 18 09:24:05 2025 +0100
imlib2_view: Set title
---
src/bin/imlib2_view.c | 2 ++
src/bin/prog_x11.c | 6 ++++++
src/bin/prog_x11.h | 4 +++-
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/src/bin/imlib2_view.c b/src/bin/imlib2_view.c
index aee2c7c..60df3f8 100644
--- a/src/bin/imlib2_view.c
+++ b/src/bin/imlib2_view.c
@@ -561,6 +561,8 @@ load_image(int no, const char *name)
char *ptr;
Drawable draw;
+ prog_x11_set_title(win, name);
+
Vprintf("Show %d: '%s'\n", no, name);
anim_update(NULL, NULL, NULL, NULL, 0); /* Clean up previous animation */
diff --git a/src/bin/prog_x11.c b/src/bin/prog_x11.c
index ea48d72..c497ed4 100644
--- a/src/bin/prog_x11.c
+++ b/src/bin/prog_x11.c
@@ -55,6 +55,12 @@ prog_x11_create_window(const char *name, int w, int h)
return win;
}
+void
+prog_x11_set_title(Window win, const char *name)
+{
+ XStoreName(disp, win, name);
+}
+
int
prog_x11_event(XEvent *ev)
{
diff --git a/src/bin/prog_x11.h b/src/bin/prog_x11.h
index b73ebe6..b0f89d2 100644
--- a/src/bin/prog_x11.h
+++ b/src/bin/prog_x11.h
@@ -6,7 +6,9 @@
extern Display *disp;
int prog_x11_init(void);
-Window prog_x11_create_window(const char *name, int w, int h);
int prog_x11_event(XEvent * ev);
+Window prog_x11_create_window(const char *name, int w, int h);
+void prog_x11_set_title(Window win, const char *name);
+
#endif /* PROG_X11_H */
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.