On 03/13/2012 10:31 AM, Bill Spitzak wrote:
On 03/13/2012 02:36 AM, Pekka Paalanen wrote:

Hi Bill,

could you try commenting out the line
EGL_DEPTH_SIZE, 1,
from compositor-x11.c?

I would very much like to know if that helps.

Yes, that indeed did fix it! Weston runs now and at least the cursor
image works in the window. I will now try to patch all the clients...

Do you know if I have to do the setuid root on libexec, libexec/*, and
bin/weston, even if I just want to run them locally?

Unfortunately the clients are still broken after removing this line from them (patch attached).

I did not touch the occurrences of EGL_DEPTH_SIZE in non-wayland code like egl. Everything was under weston.

My wayland-run.sh runs ~/install/bin/weston, sleeps 2 seconds, then runs weston/clients/weston-terminal.

What I get now is a black window with a moving cursor image, and a tiny "icon" in the upper-left corner. This icon "lights up" when I point the mouse at it, and dims when I do not. Clicking on the icon produces the following output on stdout:

[1391549.930]  -> [email protected](220434881, 272, 1)
[1391550.009] [email protected]_leave(220434881, wl_surface@26)
[1391550.048] [email protected]_enter(220434881, wl_surface@24, array)
[1391550.080] [email protected](220434881, 272, 1)
[1391550.242]  -> [email protected]_buffer(new id 34, fd 6, 1024, 32, 4096, 0)
[1391550.606]  -> [email protected](0, 0, 1024, 32)
[1391550.656]  -> [email protected](wl_buffer@34, 0, 0)
[1391550.693]  -> [email protected](new id 35)
[1391550.711]  -> [email protected](0, 0, 1024, 32)
[1391550.816] [email protected]_buffer(new id 34, fd 19, 1024, 32, 4096, 0)
[1391550.893] [email protected](0, 0, 1024, 32)
[1391550.933] [email protected](wl_buffer@34, 0, 0)
[1391550.965]  -> [email protected]()
[1391551.439] [email protected](new id 35)
[1391551.485]  -> [email protected](0)
[1391551.503]  -> [email protected]_id(35)
[1391551.520] [email protected](0, 0, 1024, 32)
[1391552.385] [email protected](0)
[1391552.458] [email protected]_id(35)
[1391653.667]  -> [email protected](220434985, 272, 0)
[1391653.822] [email protected](220434985, 272, 0)
[1391654.724]  -> [email protected]_buffer(new id 35, fd 6, 1024, 32, 4096, 0)
[1391655.305]  -> [email protected](0, 0, 1024, 32)
[1391655.403]  -> [email protected](wl_buffer@35, 0, 0)
[1391655.463]  -> [email protected](new id 36)
[1391655.492]  -> [email protected](0, 0, 1024, 32)
[1391655.650] [email protected]_buffer(new id 35, fd 19, 1024, 32, 4096, 0)
[1391655.786] [email protected](0, 0, 1024, 32)
[1391655.860] [email protected](wl_buffer@35, 0, 0)
[1391655.907]  -> [email protected]()
[1391656.562] [email protected](new id 36)
[1391656.632]  -> [email protected](0)
[1391656.661]  -> [email protected]_id(36)
[1391656.690] [email protected](0, 0, 1024, 32)
[1391657.950] [email protected](0)
[1391658.003] [email protected]_id(36)
failed to create display: Permission denied
failed to create display: Permission denied
child 6610 exited

diff --git a/clients/simple-egl.c b/clients/simple-egl.c
index 9893a82..ed8bf9a 100644
--- a/clients/simple-egl.c
+++ b/clients/simple-egl.c
@@ -100,7 +100,7 @@ init_egl(struct display *display)
                EGL_GREEN_SIZE, 1,
                EGL_BLUE_SIZE, 1,
                EGL_ALPHA_SIZE, 1,
-               EGL_DEPTH_SIZE, 1,
+               /* EGL_DEPTH_SIZE, 1, */
                EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
                EGL_NONE
        };
diff --git a/clients/window.c b/clients/window.c
index 9058e4e..46b6ece 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -2766,7 +2766,7 @@ init_egl(struct display *d)
                EGL_GREEN_SIZE, 1,
                EGL_BLUE_SIZE, 1,
                EGL_ALPHA_SIZE, 1,
-               EGL_DEPTH_SIZE, 1,
+               /* EGL_DEPTH_SIZE, 1, */
                EGL_RENDERABLE_TYPE, GL_BIT,
                EGL_NONE
        };
diff --git a/src/compositor-wayland.c b/src/compositor-wayland.c
index 48358e3..07f71ab 100644
--- a/src/compositor-wayland.c
+++ b/src/compositor-wayland.c
@@ -263,7 +263,7 @@ wayland_compositor_init_egl(struct wayland_compositor *c)
                EGL_GREEN_SIZE, 1,
                EGL_BLUE_SIZE, 1,
                EGL_ALPHA_SIZE, 1,
-               EGL_DEPTH_SIZE, 1,
+               /* EGL_DEPTH_SIZE, 1, */
                EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
                EGL_NONE
        };
diff --git a/src/compositor-x11.c b/src/compositor-x11.c
index c3eaab7..bf45c95 100644
--- a/src/compositor-x11.c
+++ b/src/compositor-x11.c
@@ -123,7 +123,7 @@ x11_compositor_init_egl(struct x11_compositor *c)
                EGL_RED_SIZE, 1,
                EGL_GREEN_SIZE, 1,
                EGL_BLUE_SIZE, 1,
-               EGL_DEPTH_SIZE, 1,
+               /* EGL_DEPTH_SIZE, 1, */
                EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
                EGL_NONE
        };
_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to