Don't send follower events from other panes
Co-Authored-By: Mikayla <mikayla@zed.dev>
This commit is contained in:
parent
7b9e7fea4e
commit
2835c9a972
1 changed files with 7 additions and 5 deletions
|
@ -448,11 +448,13 @@ impl<T: Item> ItemHandle for View<T> {
|
||||||
workspace.unfollow(&pane, cx);
|
workspace.unfollow(&pane, cx);
|
||||||
}
|
}
|
||||||
|
|
||||||
if item.add_event_to_update_proto(
|
if item.focus_handle(cx).contains_focused(cx)
|
||||||
|
&& item.add_event_to_update_proto(
|
||||||
event,
|
event,
|
||||||
&mut *pending_update.borrow_mut(),
|
&mut *pending_update.borrow_mut(),
|
||||||
cx,
|
cx,
|
||||||
) && !pending_update_scheduled.load(Ordering::SeqCst)
|
)
|
||||||
|
&& !pending_update_scheduled.load(Ordering::SeqCst)
|
||||||
{
|
{
|
||||||
pending_update_scheduled.store(true, Ordering::SeqCst);
|
pending_update_scheduled.store(true, Ordering::SeqCst);
|
||||||
cx.defer({
|
cx.defer({
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue