Clean up display connection via eglTerminate() in case of EGL
initialisation error.
Signed-off-by: Dawid Gajownik
---
src/gl-renderer.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/gl-renderer.c b/src/gl-renderer.c
index fd0720e..d7231f4 100644
--- a/src/gl
gl_renderer_output_create expects `window_for_legacy' variable to be of
type EGLNativeWindowType, not EGLNativeDisplayType. This variable is
used later in eglCreateWindowSurface().
Signed-off-by: Dawid Gajownik
---
src/compositor-drm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
On Tue, Aug 11, 2015 at 4:09 AM, Ucan, Emre (ADITG/SW1)
wrote:
> The pointer of the renderer in the compositor data structure is controlled
> in weston_compositor_shutdown. When it is not NULL, the destroy method of
> the renderer is called. Therefore, the renderer pointer should be set to NULL
>
According to POSIX standard "upon successful completion, putenv() shall
return 0; otherwise, it shall return a non-zero value." Unlike in
setenv() we should not be checking only for negative values.
Signed-off-by: Dawid Gajownik
---
src/weston-launch.c | 2 +-
1 file changed, 1 inser
On Wed, Aug 5, 2015 at 6:20 PM, Derek Foreman wrote:
> Good catch!
>
> However, can we get the same result by making weston_output_init() call
> wl_list_init(&output->link)?
>
> I think that'd be simple enough not to require a comment to explain
> what's going on...
Indeed, you're right. I tested
.
This problem happens when drm, fbdev, rdp, rpi or wayland backend is
used.
v2: Initialize output->link in weston_output_init() as suggested by
Derek Foreman.
Signed-off-by: Dawid Gajownik
---
src/compositor.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/compositor.c b/src/
- opening braces are on the same line as the if statement
- opening braces are not on the same line as the function name
- space between for/while/if and opening parenthesis
Signed-off-by: Dawid Gajownik
---
clients/eventdemo.c | 8 +++---
clients/ivi-shell-user-interface.c
for real
v2: comply with Weston coding style
Signed-off-by: Dawid Gajownik
---
src/compositor-rdp.c | 13 -
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/src/compositor-rdp.c b/src/compositor-rdp.c
index 6eac7f9..869c3f3 100644
--- a/src/compositor-rdp.c
+++ b/src
On Wed, Aug 5, 2015 at 4:18 PM, Derek Foreman wrote:
> This looks good to me barring two tiny style nits below.
> That fixed,
> Reviewed-by: Derek Foreman
Thanks for the information. Does Weston follow the same coding style
as Wayland [1]? The mistakes that I made are also present in other
files
-by: Dawid Gajownik
---
src/compositor-rdp.c | 13 -
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/src/compositor-rdp.c b/src/compositor-rdp.c
index 6eac7f9..ecd1061 100644
--- a/src/compositor-rdp.c
+++ b/src/compositor-rdp.c
@@ -541,9 +541,20 @@ rdp_restore(struct
On Wed, Aug 5, 2015 at 6:49 AM, Pekka Paalanen wrote:
> Hi,
Hi.
> NAK.
>
> By policy, we do not install protocol XML files for extensions that
> are not stable, or are intended to be private to Weston.
>
> Weston should install only the protocol files which are both stable
> and intended for use
Protocol XML files are required by external applications. This patch
installs necessary files and makes them discoverable via pkg-config.
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=89966
Signed-off-by: Dawid Gajownik
---
Makefile.am | 2 +-
src/weston.pc.in | 2 ++
2 files
lid RDP key file
[12:56:39.049] peer initialization failed
[12:56:39.050] error when treating incoming peer
Tested-by: Dawid Gajownik
___
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel
There's no need to check if a pointer exists before passing it to free().
free() can handle NULL pointers.
Signed-off-by: Dawid Gajownik
---
src/compositor-rdp.c | 9 +++--
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/src/compositor-rdp.c b/src/compositor-rdp.c
ommit makes screen-share.c compile once again after changes in
commit 1281a36e3bcd27345bd4a107f282213ecca56f0e.
Signed-off-by: Dawid Gajownik
---
src/screen-share.c | 24 ++--
1 file changed, 14 insertions(+), 10 deletions(-)
diff --git a/src/screen-share.c b/src/screen-sh
. The easiest way to reproduce a problem is to
run weston with an invalid option.
Additionally some other objects of rdp_backend structure are not
destroyed/freed. The patch fixes both issues.
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=91457
Signed-off-by: Dawid Gajownik
---
src
Fixes incorrect commit d95637905861162c08251843a11e509b5d94
Signed-off-by: Dawid Gajownik
---
.gitignore | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
index dff56db..10a15d7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -32,9 +32,9 @@ cscope.out
ote:
>>
>> On Wed, Jul 29, 2015 at 12:55:55AM -0300, Dawid Gajownik wrote:
>> > Hi,
>> >
>> > after running configure with "Enable developer documentation" set to
>> > "yes" git status warns about two new untracked files:
For better readability of `weston --help' output, backends are now sorted
in alphabetical order.
Signed-off-by: Dawid Gajownik
---
src/main.c | 90 +++---
1 file changed, 45 insertions(+), 45 deletions(-)
diff --git a/src/main.c
BTW is there a reason why backend modules are not listed in the
alphabetical order in `weston --help' output? I know it's just
cosmetic but maybe it would be a bit easier to find necessary
information if thing were sorted.
Thanks,
Dawid
___
wayland-
`--env-socket' option is of type WESTON_OPTION_BOOLEAN, not
WESTON_OPTION_STRING. Socket should be defined in RDP_FD environment variable.
Signed-off-by: Dawid Gajownik
---
src/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main.c b/src/main.c
index a2
Hi,
after running configure with "Enable developer documentation" set to
"yes" git status warns about two new untracked files:
doc/doxygen/tooldev.doxygen
doc/doxygen/tools.doxygen
Below is a small patch.
HTH,
Dawid
diff --git a/.gitignore b/.gitignore
index b13bf55..49e19d9
drm, fbdev, rpi and wayland backends are unnecessarily destroying
renderer and output before executing weston_compositor_shutdown()
Signed-off-by: Dawid Gajownik
---
src/compositor-drm.c | 1 -
src/compositor-fbdev.c | 5 +
src/compositor-rpi.c | 7 ++-
src/compositor
On Thu, Jul 30, 2015 at 10:47 PM, Bryce Harrington
wrote:
> Mind re-posting the patch, with updated changelog accounting for
> dropping the redundant renderer destruction.
>
> I did a quick look through the other compositor codes in case they
> contained similar code, but didn't spot anything. Di
drm, fbdev, rdp, rpi or wayland backend is used.
Signed-off-by: Dawid Gajownik
---
src/compositor.c | 6 +-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/compositor.c b/src/compositor.c
index 66c3eee..30924f6 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -
t(b->parent.wl_display);
if (b->theme)
On Thu, Jul 30, 2015 at 12:03 AM, Ryo Munakata wrote:
> On 07/29, Dawid Gajownik wrote:
>
> Hi Dawid.
>
>> Hi,
>>
>> in src/compositor-wayland.c:wayland_backend_destroy() you can find this code:
>>
>> st
Hi,
in src/compositor-wayland.c:wayland_backend_destroy() you can find this code:
struct weston_output *output, *next;
wl_list_for_each_safe(output, next, &b->compositor->output_list, link)
wayland_output_destroy(output);
[snip]
weston_compositor_shutdown(
27 matches
Mail list logo