mirror of
https://github.com/swaywm/sway.git
synced 2024-12-27 15:36:29 +01: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
1537c9dae5
commit
023f6b0a50
1 changed files with 5 additions and 3 deletions
|
@ -612,10 +612,12 @@ void arrange_popups(struct wlr_scene_tree *popups) {
|
||||||
struct sway_popup_desc *popup = scene_descriptor_try_get(node,
|
struct sway_popup_desc *popup = scene_descriptor_try_get(node,
|
||||||
SWAY_SCENE_DESC_POPUP);
|
SWAY_SCENE_DESC_POPUP);
|
||||||
|
|
||||||
|
if (popup) {
|
||||||
int lx, ly;
|
int lx, ly;
|
||||||
wlr_scene_node_coords(popup->relative, &lx, &ly);
|
wlr_scene_node_coords(popup->relative, &lx, &ly);
|
||||||
wlr_scene_node_set_position(node, lx, ly);
|
wlr_scene_node_set_position(node, lx, ly);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void arrange_root(struct sway_root *root) {
|
static void arrange_root(struct sway_root *root) {
|
||||||
|
|
Loading…
Reference in a new issue