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 597fcf7be711f9911adbc139dc1c6cbffdca5fba
Author: Kim Woelders <[email protected]>
AuthorDate: Fri Jun 10 16:22:07 2022 +0200
xprop: Drop setting default desktop names in ex_netwm_desk_names_set()
Should be set up elsewhere.
---
src/xprop.c | 13 +++----------
1 file changed, 3 insertions(+), 10 deletions(-)
diff --git a/src/xprop.c b/src/xprop.c
index 97d5d844..313461cd 100644
--- a/src/xprop.c
+++ b/src/xprop.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2004-2021 Kim Woelders
+ * Copyright (C) 2004-2022 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
@@ -755,7 +755,7 @@ void
ex_netwm_desk_names_set(EX_Window root, const char **names,
unsigned int n_desks)
{
- char ss[32], *buf, *buf_r;
+ char *buf, *buf_r;
const char *s;
unsigned int i;
int l, len;
@@ -765,14 +765,7 @@ ex_netwm_desk_names_set(EX_Window root, const char **names,
for (i = 0; i < n_desks; i++)
{
- s = (names) ? names[i] : NULL;
- if (!s)
- {
- /* Default to "Desk-<number>" */
- sprintf(ss, "Desk-%u", i);
- s = ss;
- }
-
+ s = (names) ? names[i] : "?";
l = strlen(s) + 1;
buf_r = EREALLOC(char, buf, len + l);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.