mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-02 09:01:39 -05:00
Send device name at connect time
This commit is contained in:
parent
945ea0e743
commit
478d9265f9
16 changed files with 139 additions and 161 deletions
|
|
@ -1144,7 +1144,8 @@ init_egl(struct wlsc_compositor *ec, struct udev_device *device)
|
|||
return -1;
|
||||
}
|
||||
|
||||
ec->drm_fd = open(udev_device_get_devnode(device), O_RDWR);
|
||||
ec->base.device = strdup(udev_device_get_devnode(device));
|
||||
ec->drm_fd = open(ec->base.device, O_RDWR);
|
||||
if (ec->drm_fd < 0) {
|
||||
/* Probably permissions error */
|
||||
fprintf(stderr, "couldn't open %s, skipping\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue