Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
spectrwm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add Version to mod shift v
[spectrwm.git]
/
scrotwm.c
diff --git
a/scrotwm.c
b/scrotwm.c
index
cae3cac
..
31a7364
100644
(file)
--- a/
scrotwm.c
+++ b/
scrotwm.c
@@
-51,7
+51,7
@@
static const char *cvstag = "$scrotwm$";
static const char *cvstag = "$scrotwm$";
-#define SWM_VERSION "0.9.2"
+#define SWM_VERSION "0.9.5"
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
@@
-912,7
+912,8
@@
version(struct swm_region *r, union arg *args)
{
bar_version = !bar_version;
if (bar_version)
{
bar_version = !bar_version;
if (bar_version)
- strlcpy(bar_vertext, cvstag, sizeof bar_vertext);
+ snprintf(bar_vertext, sizeof bar_vertext, "Version: %s CVS: %s",
+ SWM_VERSION, cvstag);
else
strlcpy(bar_vertext, "", sizeof bar_vertext);
bar_update();
else
strlcpy(bar_vertext, "", sizeof bar_vertext);
bar_update();