mirror of
https://codeberg.org/kiss-community/repo
synced 2024-11-16 03:30:23 -07:00
16 lines
428 B
Diff
16 lines
428 B
Diff
diff --git a/src/nv_driver.c b/src/nv_driver.c
|
|
index 185bba7..7927128 100644
|
|
--- a/src/nv_driver.c
|
|
+++ b/src/nv_driver.c
|
|
@@ -501,6 +501,10 @@ NVEnterVT(VT_FUNC_ARGS_DECL)
|
|
(pNVEnt->platform_dev->flags & XF86_PDEV_SERVER_FD)))
|
|
#endif
|
|
{
|
|
+ ret = drmIsMaster(pNv->dev->fd);
|
|
+ if (ret)
|
|
+ return TRUE;
|
|
+
|
|
ret = drmSetMaster(pNv->dev->fd);
|
|
if (ret)
|
|
ErrorF("Unable to get master: %s\n", strerror(errno));
|