aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-04-12 09:47:16 +0200
committerKenny Levinsen <kl@kl.wtf>2021-04-12 16:18:17 +0200
commit78fc9d0d2d4fae0565b115f5ee4b0296b4e993f2 (patch)
treea678fdb7eeee2025e8e8c69792e0a5170228e394
parenta558866f42de74f7dc0500c3fe29bb506cf03cf6 (diff)
downloadsway-78fc9d0d2d4fae0565b115f5ee4b0296b4e993f2.tar.xz
Log wlroots version on startup
Can be useful to make sure a bugfix is included. In the future maybe the wlroots version string could include a commit hash when built from source, too.
-rw-r--r--sway/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/main.c b/sway/main.c
index 84f8eb6e..cd949e1e 100644
--- a/sway/main.c
+++ b/sway/main.c
@@ -12,6 +12,7 @@
#include <sys/un.h>
#include <unistd.h>
#include <wlr/util/log.h>
+#include <wlr/version.h>
#include "sway/commands.h"
#include "sway/config.h"
#include "sway/server.h"
@@ -344,6 +345,7 @@ int main(int argc, char **argv) {
}
sway_log(SWAY_INFO, "Sway version " SWAY_VERSION);
+ sway_log(SWAY_INFO, "wlroots version " WLR_VERSION_STR);
log_kernel();
log_distro();
log_env();