[xf86-video-dummy PATCH] Set HW_SKIP_CONSOLE when available
Aaron Plattner
aplattner at nvidia.com
Wed Nov 4 12:45:32 PST 2009
Signed-off-by: Aaron Plattner <aplattner at nvidia.com>
---
This change lets me run a custom-built X server with the dummy driver
without ever becoming root.
src/dummy_driver.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/dummy_driver.c b/src/dummy_driver.c
index 6f4b562..f0c64f2 100644
--- a/src/dummy_driver.c
+++ b/src/dummy_driver.c
@@ -796,12 +796,15 @@ DUMMYCreateWindow(WindowPtr pWin)
static Bool
dummyDriverFunc(ScrnInfoPtr pScrn, xorgDriverFuncOp op, pointer ptr)
{
- CARD32 *flag;
+ xorgHWFlags *flag;
switch (op) {
case GET_REQUIRED_HW_INTERFACES:
- flag = (CARD32*)ptr;
- (*flag) = 0;
+ flag = ptr;
+ *flag = 0;
+#if defined(HW_SKIP_CONSOLE)
+ *flag |= HW_SKIP_CONSOLE;
+#endif
return TRUE;
default:
return FALSE;
--
1.6.0.4
More information about the xorg-devel
mailing list