[PATCH weston 3/3] tablet-shell: Avoid infinite loop when unlocking

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


On Tue, Jul 09, 2013 at 12:12:50PM +0100, Rob Bradford wrote:
> From: Rob Bradford <rob at linux.intel.com>
> 
> weston_compositor_wake will fire the signal that the unlock handler is
> setup as the listener for. Instead lets change the state to HOME which
> unlocks.
> ---
>  src/tablet-shell.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Ah, this didn't get updated when we cleaned up the idle/wake logic.
Thanks, applied.

Kristian

> diff --git a/src/tablet-shell.c b/src/tablet-shell.c
> index e8ac82d..b89c333 100644
> --- a/src/tablet-shell.c
> +++ b/src/tablet-shell.c
> @@ -417,7 +417,7 @@ tablet_shell_unlock(struct wl_listener *listener, void *data)
>  	struct tablet_shell *shell =
>  		container_of(listener, struct tablet_shell, unlock_listener);
>  
> -	weston_compositor_wake(shell->compositor);
> +	tablet_shell_set_state(shell, STATE_HOME);
>  }
>  
>  static void
> -- 
> 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