Merge pull request #758 from martinetd/unfullscreen

rootston: Fix segfault in seat unfullscreening
This commit is contained in:
Drew DeVault 2018-03-27 08:35:49 -04:00 committed by GitHub
commit e9ccb705fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -733,7 +733,7 @@ void roots_seat_set_focus(struct roots_seat *seat, struct roots_view *view) {
} }
#endif #endif
if (unfullscreen) { if (view && unfullscreen) {
struct roots_desktop *desktop = view->desktop; struct roots_desktop *desktop = view->desktop;
struct roots_output *output; struct roots_output *output;
struct wlr_box box; struct wlr_box box;