mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
rootston: fix segfault when destroying unmapped xwayland view
This happens when closing chromium for instance.
This commit is contained in:
parent
bde255933e
commit
bed7522108
1 changed files with 3 additions and 1 deletions
|
|
@ -414,7 +414,9 @@ static void output_damage_whole_surface(struct roots_output *output,
|
|||
|
||||
void output_damage_whole_view(struct roots_output *output,
|
||||
struct roots_view *view) {
|
||||
output_damage_whole_surface(output, view->wlr_surface, view->x, view->y);
|
||||
if (view->wlr_surface != NULL) {
|
||||
output_damage_whole_surface(output, view->wlr_surface, view->x, view->y);
|
||||
}
|
||||
|
||||
// TODO: subsurfaces, popups, etc
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue