<div dir="ltr">2013/8/13 Kristian Høgsberg <span dir="ltr"><<a href="mailto:hoegsberg@gmail.com" target="_blank">hoegsberg@gmail.com</a>></span><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div class="im">On Sat, Aug 10, 2013 at 05:23:33PM +0200, Giulio Camuffo wrote:<br>
> ---<br>
>  src/xwayland/window-manager.c | 6 +++++-<br>
>  1 file changed, 5 insertions(+), 1 deletion(-)<br>
><br>
> diff --git a/src/xwayland/window-manager.c b/src/xwayland/window-manager.c<br>
> index d565888..b710560 100644<br>
> --- a/src/xwayland/window-manager.c<br>
> +++ b/src/xwayland/window-manager.c<br>
> @@ -610,11 +610,15 @@ static void<br>
>  weston_wm_window_activate(struct wl_listener *listener, void *data)<br>
>  {<br>
>       struct weston_surface *surface = data;<br>
> -     struct weston_wm_window *window = get_wm_window(surface);<br>
> +     struct weston_wm_window *window = NULL;<br>
>       struct weston_wm *wm =<br>
>               container_of(listener, struct weston_wm, activate_listener);<br>
>       xcb_client_message_event_t client_message;<br>
><br>
> +     if (data) {<br>
> +             window = get_wm_window(surface);<br>
> +     }<br>
<br>
</div>When would this trigger?  </blockquote><div>When deactivating all the surfaces, i.e. calling weston_surface_activate(0, seat),</div><div>with xwayland enabled.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
And testing surface instead of data would<br>
look a little nicer here.<br></blockquote><div>Ok. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<span class=""><font color="#888888"><br>
Kristian<br>
</font></span><div class="im"><br>
<br>
>       if (window) {<br>
>               client_message.response_type = XCB_CLIENT_MESSAGE;<br>
>               client_message.format = 32;<br>
> --<br>
> 1.8.3.4<br>
><br>
</div><div class=""><div class="h5">> _______________________________________________<br>
> wayland-devel mailing list<br>
> <a href="mailto:wayland-devel@lists.freedesktop.org">wayland-devel@lists.freedesktop.org</a><br>
> <a href="http://lists.freedesktop.org/mailman/listinfo/wayland-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/wayland-devel</a><br>
</div></div></blockquote></div><br></div></div>