aboutsummaryrefslogtreecommitdiff
path: root/xorg/xorg-server/patches/rootless_modesetting.patch
blob: d578208d00eed26f9b22b9d96e0acb285374b251 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- 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",