[PATCH weston v2 07/24] desktop-shell: debug set_position_from_xwayland

Quentin Glidic sardemff7+wayland at sardemff7.net
Sun Jan 15 13:35:22 UTC 2017


On 21/12/2016 15:40, Pekka Paalanen wrote:
> From: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
> 
> Helps tracking what happens with XWM.
> 
> Use the same debugging guard as XWM.
> 
> Signed-off-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>

Seems good:
Reviewed-by: Quentin Glidic <sardemff7+git at sardemff7.net>


> ---
>   desktop-shell/shell.c | 6 ++++++
>   1 file changed, 6 insertions(+)
> 
> diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c
> index 9b39933..f53a49c 100644
> --- a/desktop-shell/shell.c
> +++ b/desktop-shell/shell.c
> @@ -2404,6 +2404,12 @@ set_position_from_xwayland(struct shell_surface *shsurf)
>   	y = shsurf->xwayland.y - geometry.y;
>   
>   	weston_view_set_position(shsurf->view, x, y);
> +
> +#ifdef WM_DEBUG
> +	weston_log("%s: XWM %d, %d; geometry %d, %d; view %f, %f\n",
> +		   __func__, shsurf->xwayland.x, shsurf->xwayland.y,
> +		   geometry.x, geometry.y, x, y);
> +#endif
>   }
>   
>   static void
> 


-- 

Quentin “Sardem FF7” Glidic


More information about the wayland-devel mailing list