2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-11-15 11:10:08 -07:00
repo/xorg/xorg-server/patches/rootless_modesetting.patch

15 lines
388 B
Diff
Raw Normal View History

2019-10-08 15:06:58 -06:00
--- 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",