Compare commits

...

2 commits

Author SHA1 Message Date
143af553ea wl_output: fix incorrect version check for name callback
wl_output name callback is defined in version 4, not 3.
2025-06-17 00:35:09 +05:00
0fe255c3ce Update drm references to use correct path (libdrm, not drm). 2025-06-17 00:35:09 +05:00
3 changed files with 4 additions and 4 deletions

View file

@ -10,8 +10,8 @@
XCBLIB = -lX11-xcb
PIXMAN = -lpixman-1
DRM = -ldrm
DRMFOURCCH = $(INCROOT)/drm/drm_fourcc.h
DRMINCLUDES = -I$(INCROOT)/drm
DRMFOURCCH = $(INCROOT)/libdrm/drm_fourcc.h
DRMINCLUDES = -I$(INCROOT)/libdrm
PIXMANINCLUDES = -I$(INCROOT)/pixman-1
XPRESENTLIB = -lXpresent
WAYLAND_SCANNER = wayland-scanner

View file

@ -274,7 +274,7 @@ HandleBind (struct wl_client *client, void *data,
/* Send the output name. I think it is supposed to be unique. */
if (wl_resource_get_version (resource) >= 3)
if (wl_resource_get_version (resource) >= 4)
wl_output_send_name (resource, output->name);
if (wl_resource_get_version (resource) >= 2)

View file

@ -19,7 +19,7 @@ along with 12to11. If not, see <https://www.gnu.org/licenses/>. */
#include <xf86drm.h>
#include <gbm.h>
#include <drm/drm_fourcc.h>
#include <drm_fourcc.h>
#include <sys/mman.h>
#include <sys/fcntl.h>