mirror of
https://github.com/swaywm/sway.git
synced 2025-11-12 13:29:56 -05:00
Fix crash when adding output
This commit is contained in:
parent
a49e4b13bf
commit
e1955c5c08
3 changed files with 11 additions and 4 deletions
|
|
@ -889,8 +889,10 @@ void view_add_mark(struct sway_view *view, char *mark) {
|
|||
|
||||
static void update_marks_texture(struct sway_view *view,
|
||||
struct wlr_texture **texture, struct border_colors *class) {
|
||||
struct sway_output *output =
|
||||
view->swayc->outputs->items[view->swayc->outputs->length - 1];
|
||||
struct sway_output *output = container_get_effective_output(view->swayc);
|
||||
if (!output) {
|
||||
return;
|
||||
}
|
||||
if (*texture) {
|
||||
wlr_texture_destroy(*texture);
|
||||
*texture = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue