<div dir="ltr">Yep, looks good.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 7, 2014 at 4:57 AM, Ander Conselvan de Oliveira <span dir="ltr"><<a href="mailto:conselvan2@gmail.com" target="_blank">conselvan2@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">From: Ander Conselvan de Oliveira <<a href="mailto:ander.conselvan.de.oliveira@intel.com">ander.conselvan.de.oliveira@intel.com</a>><br>

<br>
The check to avoid calling weston_keyboard_set_focus() for a seat that<br>
didn't have a keyboard in restore_focus_state() was cheking the wrong<br>
seat (the one from the previous loop). That caused a crash when<br>
switching workspaces if there was an extra seat that didn't have a<br>
keyboard.<br>
<br>
<a href="https://bugs.freedesktop.org/show_bug.cgi?id=78349" target="_blank">https://bugs.freedesktop.org/show_bug.cgi?id=78349</a><br>
---<br>
 desktop-shell/shell.c | 2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/desktop-shell/shell.c b/desktop-shell/shell.c<br>
index fac3120..ea7b3cd 100644<br>
--- a/desktop-shell/shell.c<br>
+++ b/desktop-shell/shell.c<br>
@@ -731,7 +731,7 @@ restore_focus_state(struct desktop_shell *shell, struct workspace *ws)<br>
        wl_list_for_each_safe(seat, next_seat, &pending_seat_list, link) {<br>
                wl_list_insert(&shell->compositor->seat_list, &seat->link);<br>
<br>
-               if (state->seat->keyboard == NULL)<br>
+               if (seat->keyboard == NULL)<br>
                        continue;<br>
<br>
                weston_keyboard_set_focus(seat->keyboard, NULL);<br>
<span class="HOEnZb"><font color="#888888">--<br>
1.8.3.2<br>
<br>
_______________________________________________<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>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>  Jasper<br>
</div>