1
1
mirror of https://github.com/wez/wezterm.git synced 2024-08-16 17:50:28 +03:00

WIP fix for i3 terminals sending mouse press before focus event

I don't expect this is the correct place for this fix but the thinking
is that the window only gets the mouse press event if the mouse is over
the terminal window. In this case it makes sense (to me?) that if the
window doesn't have focus, the click should still be passed to the
application.
This commit is contained in:
Peter Holloway 2024-01-27 20:14:21 +00:00
parent bbcac86436
commit 19ecee9c29

View File

@ -755,7 +755,7 @@ impl super::TermWindow {
}
let allow_action = if self.is_click_to_focus_window || !is_focused {
matches!(&event.kind, WMEK::VertWheel(_) | WMEK::HorzWheel(_))
matches!(&event.kind, WMEK::VertWheel(_) | WMEK::HorzWheel(_) | WMEK::Press(_))
} else {
true
};