mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
view: check view->impl functions exist before using
Avoids segfault when using disappearing notification in Thunderbird
This commit is contained in:
parent
846ccb9eb9
commit
40da2f34a5
2 changed files with 20 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue