The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

t/gui: Show git hash in Window title (NFC)

+5 -1
+1
doc/changes/state_trackers/mr.830.md
··· 1 + gui: Show git description in `monado-gui` window title.
+4 -1
src/xrt/targets/gui/gui_sdl2.c
··· 9 9 10 10 #include "ogl/ogl_api.h" 11 11 #include "gui_sdl2.h" 12 + #include "util/u_git_tag.h" 12 13 13 14 14 15 /* ··· 60 61 } 61 62 p->sdl_initialized = true; 62 63 63 - const char *title = "Monado! ☺"; 64 + char title[1024]; 65 + snprintf(title, sizeof(title), "Monado! ☺ (%s)", u_git_tag); 66 + 64 67 int x = SDL_WINDOWPOS_UNDEFINED; 65 68 int y = SDL_WINDOWPOS_UNDEFINED; 66 69 int w = 1920;