sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit a96e86744ffd19d9ed8a7fc8e5468bb8b274b228
parent 3b4cf3718b05d5ebd98d730abb742e82f8980287
Author: Mack Straight <eizneckam@gmail.com>
Date:   Tue,  1 Jan 2019 09:45:14 -0500

Fix fullscreen view rendering crash

See issue #3359 for reproduction details. When a fullscreen view is
unmapped and there's a preceding transaction waiting, there may be
neither a saved buffer or a surface to render. This change matches
the equivalent code in render_view.

Diffstat:
Msway/desktop/render.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sway/desktop/render.c b/sway/desktop/render.c @@ -1017,7 +1017,7 @@ void output_render(struct sway_output *output, struct timespec *when, if (fullscreen_con->view) { if (fullscreen_con->view->saved_buffer) { render_saved_view(fullscreen_con->view, output, damage, 1.0f); - } else { + } else if (fullscreen_con->view->surface) { render_view_toplevels(fullscreen_con->view, output, damage, 1.0f); }