aboutsummaryrefslogtreecommitdiff
path: root/xorg/xorg-server/patches
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2019-12-09 19:17:24 +0300
committerCem Keylan <cem@ckyln.com>2019-12-09 19:17:24 +0300
commit03423e0583057cbe5a16f8439183e2dbc0e8dd7c (patch)
tree81fe3ba69d94146f83fb5541d1fb2da0ac4eac08 /xorg/xorg-server/patches
downloadrepository-03423e0583057cbe5a16f8439183e2dbc0e8dd7c.tar.gz
secondary commit
Diffstat (limited to 'xorg/xorg-server/patches')
-rw-r--r--xorg/xorg-server/patches/rootless_modesetting.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/xorg/xorg-server/patches/rootless_modesetting.patch b/xorg/xorg-server/patches/rootless_modesetting.patch
new file mode 100644
index 00000000..d578208d
--- /dev/null
+++ b/xorg/xorg-server/patches/rootless_modesetting.patch
@@ -0,0 +1,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",
+