mirror of
https://github.com/swaywm/sway.git
synced 2026-03-30 11:10:59 -04:00
layer_shell: Handle popups through popup descriptor
We tried to synchronize layer shell popups with the parent layer shell on commits, but this is subtly wrong because we would only update the position for one layer shell that was committed, but not any other layer that might be affected. By moving handling to the scene descriptor we can iterate all popups and ensure they are synchronized.
This commit is contained in:
parent
1846944f04
commit
09c360d503
4 changed files with 18 additions and 13 deletions
|
|
@ -92,7 +92,7 @@ struct sway_node *node_at_coords(
|
|||
if (!con) {
|
||||
struct sway_popup_desc *popup =
|
||||
scene_descriptor_try_get(current, SWAY_SCENE_DESC_POPUP);
|
||||
if (popup) {
|
||||
if (popup && popup->view) {
|
||||
con = popup->view->container;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue