Skip to content

Commit

Permalink
Clarified floating pane mouse handling in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
e82eric committed Oct 20, 2024
1 parent 181884c commit 31afd6c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions wezterm-gui/src/termwindow/mouseevent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -686,10 +686,9 @@ impl super::TermWindow {
}
}

// Mouse events are not dispatched to the other panes when
// a floating pane is active, this is to prevent users from selecting one of the
// panes that the floating pane is on top of and encountering some weird behavior, ex.
// closing the last non-floating pane while the floating pane is active.
// Non click mouse events are not dispatched to the other panes when a floating
// pane is active. This is to prevent users from triggering unexpected
// behavior on one of the non-floating panes.
return;
}
vec![floating_pane]
Expand Down

0 comments on commit 31afd6c

Please sign in to comment.