Skip to content

Commit

Permalink
transaction: Allow no popup descriptor in popup list
Browse files Browse the repository at this point in the history
Input method popups in the future will destroy the scene descriptor when
it isn't mapped and therefore shouldn't be tampered with here.
  • Loading branch information
Nefsen402 authored and emersion committed Sep 20, 2024
1 parent 1537c9d commit 023f6b0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions sway/desktop/transaction.c
Original file line number Diff line number Diff line change
Expand Up @@ -612,9 +612,11 @@ void arrange_popups(struct wlr_scene_tree *popups) {
struct sway_popup_desc *popup = scene_descriptor_try_get(node,
SWAY_SCENE_DESC_POPUP);

int lx, ly;
wlr_scene_node_coords(popup->relative, &lx, &ly);
wlr_scene_node_set_position(node, lx, ly);
if (popup) {
int lx, ly;
wlr_scene_node_coords(popup->relative, &lx, &ly);
wlr_scene_node_set_position(node, lx, ly);
}
}
}

Expand Down

0 comments on commit 023f6b0

Please sign in to comment.