Looks like the C++ version of vkcube has wayland issues which was not fixed and backported from C version.