[PATCH weston 2/3] tablet-shell: Fix copy and paste error in unlock handler

Kristian Høgsberg hoegsberg at gmail.com
Tue Jul 9 14:11:01 PDT 2013


On Tue, Jul 09, 2013 at 12:12:49PM +0100, Rob Bradford wrote:
> From: Rob Bradford <rob at linux.intel.com>
> 
> The signal handler was using the wrong member to find the containing
> structure of the unlock listener.
> 
> https://bugs.freedesktop.org/show_bug.cgi?id=57637

Thanks, good catch.

Kristian

> ---
>  src/tablet-shell.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/tablet-shell.c b/src/tablet-shell.c
> index 76a4010..e8ac82d 100644
> --- a/src/tablet-shell.c
> +++ b/src/tablet-shell.c
> @@ -415,7 +415,7 @@ static void
>  tablet_shell_unlock(struct wl_listener *listener, void *data)
>  {
>  	struct tablet_shell *shell =
> -		container_of(listener, struct tablet_shell, lock_listener);
> +		container_of(listener, struct tablet_shell, unlock_listener);
>  
>  	weston_compositor_wake(shell->compositor);
>  }
> -- 
> 1.8.3.1
> 
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel


More information about the wayland-devel mailing list