ecore_wl2: Fix a wayland session recovery breaker... again

We need to bind a shell on reconnect, but dfb2af697 made sure
we only bind a single shell per wayland display for the life of
the display object - which lives longer than the connection.

That means when session recovery tries to reconnect it never bothers
to bind a shell, so the client can never post buffers.

ref https://phab.enlightenment.org/T5226
ref https://phab.enlightenment.org/T5005

@fix
This commit is contained in:
Derek Foreman 2017-03-01 13:49:02 -06:00
parent cb39bd158e
commit 16a1f8f188
1 changed files with 2 additions and 0 deletions

View File

@ -279,6 +279,8 @@ _recovery_timer_add(Ecore_Wl2_Display *ewd)
ecore_main_fd_handler_del(ewd->fd_hdl);
ewd->fd_hdl = NULL;
ewd->shell_done = EINA_FALSE;
if (ewd->wl.session_recovery)
zwp_e_session_recovery_destroy(ewd->wl.session_recovery);
if (ewd->wl.www) www_destroy(ewd->wl.www);