diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2010-11-24 16:39:30 -0500 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-03-27 09:31:54 -0400 |
commit | e9e8a51a527a4a6725ac4b0cc75523c500e64a77 (patch) | |
tree | b8bee6f0f0416ac3207697090e5486c9537addef | |
parent | 39aa291a00bfcb440abc78b813b8674c009b91c4 (diff) |
hosted: Enable rootless flag when the command line argument is set
-rw-r--r-- | hw/xfree86/hosted/hosted.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/xfree86/hosted/hosted.c b/hw/xfree86/hosted/hosted.c index dbbbb2c9c..21e07c1d7 100644 --- a/hw/xfree86/hosted/hosted.c +++ b/hw/xfree86/hosted/hosted.c @@ -45,6 +45,7 @@ #include <xf86Crtc.h> #include <xf86str.h> #include <windowstr.h> +#include <xf86Priv.h> #include <xf86drm.h> #include "hosted.h" @@ -670,6 +671,11 @@ hosted_screen_pre_init(ScrnInfoPtr scrninfo, hosted_screen->driver = driver; hosted_screen->flags = flags; + if (xorgRootless) { + ErrorF("rootless flag!\n"); + hosted_screen->flags |= HOSTED_FLAGS_ROOTLESS; + } + xf86CrtcConfigInit(scrninfo, &config_funcs); xf86CrtcSetSizeRange(scrninfo, 320, 200, 8192, 8192); |