src/compositor.c hardcodes /dev/dri/card0 which is not the correct device on OpenBSD.. when i enable the comopositor on openbsd, i get this warning on stderr: xfwm4-WARNING **: Error opening /dev/dri/card0: No such file or directory -#define DRM_CARD0 "/dev/dri/card0" +#define DRM_CARD0 "/dev/drm0" worksaround the issue for me on OpenBSD, but that'd ask for proper #ifdef goo, and check support for FreeBSD and NetBSD. http://netbsd.gw.com/cgi-bin/man-cgi/man?radeondrm+4+NetBSD-current seem to say that NetBSD also uses /dev/dri/card0 https://www.freebsd.org/cgi/man.cgi?query=drm&sektion=7&apropos=0&manpath=FreeBSD+10.1-RELEASE+and+Ports seem to confirm the same for FreeBSD. So maybe #ifdef __OpenBSD__ #define DRM_CARD0 "/dev/drm0" #else #define DRM_CARD0 "/dev/dri/card0" #endif
Pushed, thanks!