view: check view->impl functions exist before using

Avoids segfault when using disappearing notification in Thunderbird
This commit is contained in:
Johan Malm 2021-10-18 19:35:41 +01:00
parent 846ccb9eb9
commit 40da2f34a5
2 changed files with 20 additions and 13 deletions

View file

@ -79,7 +79,7 @@ process_cursor_move(struct server *server, uint32_t time)
struct view *view = server->grabbed_view;
/* Move the grabbed view to the new position. */
view->impl->move(view, server->grab_box.x + dx, server->grab_box.y + dy);
view_move(view, server->grab_box.x + dx, server->grab_box.y + dy);
}
static void