mirror of
https://github.com/swaywm/sway.git
synced 2026-04-18 06:46:56 -04:00
transaction: Allow no popup descriptor in popup list
Input method popups in the future will destroy the scene descriptor when it isn't mapped and therefore shouldn't be tampered with here.
This commit is contained in:
parent
6b57b5e8c0
commit
9a5d664f51
1 changed files with 5 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue