[PATCH 4/6 xserver] xwayland: remove rootless flag
Tiago Vignatti
tiago.vignatti at intel.com
Tue Apr 3 06:58:02 PDT 2012
I can starting a stand-alone xserver for debugging and also spawning it
normally via weston.
Signed-off-by: Tiago Vignatti <tiago.vignatti at intel.com>
---
hw/xfree86/xwayland/xwayland-window.c | 12 +++---------
hw/xfree86/xwayland/xwayland.c | 3 ---
hw/xfree86/xwayland/xwayland.h | 2 --
3 files changed, 3 insertions(+), 14 deletions(-)
diff --git a/hw/xfree86/xwayland/xwayland-window.c b/hw/xfree86/xwayland/xwayland-window.c
index e58350f..0f2a26f 100644
--- a/hw/xfree86/xwayland/xwayland-window.c
+++ b/hw/xfree86/xwayland/xwayland-window.c
@@ -105,8 +105,7 @@ xwl_create_window(WindowPtr window)
xwl_screen->CreateWindow = screen->CreateWindow;
screen->CreateWindow = xwl_create_window;
- if (!(xwl_screen->flags & XWL_FLAGS_ROOTLESS) ||
- window->parent != NULL)
+ if (window->parent != NULL)
return ret;
len = snprintf(buffer, sizeof buffer, "_NET_WM_CM_S%d", screen->myNum);
@@ -174,13 +173,8 @@ xwl_realize_window(WindowPtr window)
xwl_screen->RealizeWindow = xwl_screen->RealizeWindow;
screen->RealizeWindow = xwl_realize_window;
- if (xwl_screen->flags & XWL_FLAGS_ROOTLESS) {
- if (window->redirectDraw != RedirectDrawManual)
- return ret;
- } else {
- if (window->parent)
- return ret;
- }
+ if (window->redirectDraw != RedirectDrawManual)
+ return ret;
xwl_window = calloc(sizeof *xwl_window, 1);
xwl_window->xwl_screen = xwl_screen;
diff --git a/hw/xfree86/xwayland/xwayland.c b/hw/xfree86/xwayland/xwayland.c
index 829b4c2..a35f665 100644
--- a/hw/xfree86/xwayland/xwayland.c
+++ b/hw/xfree86/xwayland/xwayland.c
@@ -237,9 +237,6 @@ xwl_screen_pre_init(ScrnInfoPtr scrninfo,
xwl_screen->driver = driver;
xwl_screen->flags = flags;
- if (xorgRootless)
- xwl_screen->flags |= XWL_FLAGS_ROOTLESS;
-
xwl_screen->display = wl_display_connect(NULL);
if (xwl_screen->display == NULL) {
ErrorF("wl_display_create failed\n");
diff --git a/hw/xfree86/xwayland/xwayland.h b/hw/xfree86/xwayland/xwayland.h
index 5eba934..87601df 100644
--- a/hw/xfree86/xwayland/xwayland.h
+++ b/hw/xfree86/xwayland/xwayland.h
@@ -38,8 +38,6 @@ struct xwl_driver {
PixmapPtr pixmap);
};
-#define XWL_FLAGS_ROOTLESS 0x01
-
extern _X_EXPORT int
xwl_version(void);
--
1.7.5.4
More information about the wayland-devel
mailing list