Invalidate overlay layout when base layer captures an Event
This commit is contained in:
parent
8a5a365be9
commit
bbd55ff3a9
1 changed files with 5 additions and 1 deletions
|
|
@ -255,7 +255,7 @@ where
|
||||||
cursor_position
|
cursor_position
|
||||||
};
|
};
|
||||||
|
|
||||||
self.overlay = None;
|
self.overlay = Some(layout);
|
||||||
|
|
||||||
(base_cursor, event_statuses)
|
(base_cursor, event_statuses)
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -285,6 +285,10 @@ where
|
||||||
&mut shell,
|
&mut shell,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if matches!(event_status, event::Status::Captured) {
|
||||||
|
self.overlay = None;
|
||||||
|
}
|
||||||
|
|
||||||
shell.revalidate_layout(|| {
|
shell.revalidate_layout(|| {
|
||||||
self.base = renderer.layout(
|
self.base = renderer.layout(
|
||||||
&self.root,
|
&self.root,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue