2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-12-23 15:50:06 -07:00
repo/xorg/xorg-server/patches/rootless_modesetting.patch
2019-10-09 00:06:58 +03:00

15 lines
388 B
Diff

--- xorg-server-1.20.3/hw/xfree86/drivers/modesetting/driver.c
+++ xorg-server-1.20.3/hw/xfree86/drivers/modesetting/driver.c
@@ -1528,6 +1528,10 @@
if (ms->fd_passed)
return TRUE;
+ ret = drmIsMaster(ms->fd);
+ if (ret)
+ return TRUE;
+
ret = drmSetMaster(ms->fd);
if (ret)
xf86DrvMsg(pScrn->scrnIndex, X_ERROR, "drmSetMaster failed: %s\n",