mirror of
https://github.com/swaywm/sway.git
synced 2025-11-14 06:59:47 -05:00
Merge pull request #3399 from RedSoxFan/fix-output-destruction-segfaults
Fix segfaults on output destruction
This commit is contained in:
commit
9abac85888
2 changed files with 5 additions and 1 deletions
|
|
@ -85,6 +85,10 @@ static struct sway_node *node_at_coords(
|
|||
return NULL;
|
||||
}
|
||||
struct sway_output *output = wlr_output->data;
|
||||
if (!output) {
|
||||
// output is being destroyed
|
||||
return NULL;
|
||||
}
|
||||
double ox = lx, oy = ly;
|
||||
wlr_output_layout_output_coords(root->output_layout, wlr_output, &ox, &oy);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue