rootston: fix sending frame done to undefined view

This commit is contained in:
emersion 2018-02-20 16:32:29 +01:00
parent dc77b4c8c6
commit 00e647e161
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48
1 changed files with 2 additions and 1 deletions

View File

@ -535,7 +535,8 @@ damage_finish:
// Send frame done events to all surfaces
if (output->fullscreen_view != NULL) {
if (wlr_output->fullscreen_surface == output->fullscreen_view->wlr_surface) {
struct roots_view *view = output->fullscreen_view;
if (wlr_output->fullscreen_surface == view->wlr_surface) {
// The surface is managed by the wlr_output
return;
}