Skip to content

Commit

Permalink
core: Add wlroots version to wayfire --version output (#2463)
Browse files Browse the repository at this point in the history
  • Loading branch information
soreau committed Sep 4, 2024
1 parent 0496eea commit e7c5139
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/api/wayfire/nonstd/wlroots-full.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@

extern "C"
{
// Version
#include <wlr/version.h>
// Rendering
#define static
#include <wlr/types/wlr_compositor.h>
Expand Down
3 changes: 2 additions & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
static void print_version()
{
std::cout << WAYFIRE_VERSION << "-" << wf::version::git_commit <<
" (" __DATE__ ") branch " << wf::version::git_branch << std::endl;
" (" __DATE__ ") branch " << wf::version::git_branch <<
" wlroots-" << WLR_VERSION_STR << std::endl;
exit(0);
}

Expand Down

0 comments on commit e7c5139

Please sign in to comment.