You could also implement a Wayland or X11 client by yourself. Those libraries are also implemented in C after all. No need for external libraries to write to some sockets.
Whether it's worth doing is another matter.
Whether it's worth doing is another matter.