mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-08-26 00:51:44 +00:00
gtk: forward middle click to TUIs with mouse reporting (#13108)
Fix for Issue #12940 I actually do not know if this has already been resolved and the issue is just still open. Either way, here's a fix. Now we run a check to see if the current program is accepting mouse events before discarding the middle click.
This commit is contained in:
@@ -3682,6 +3682,12 @@ fn isMouseReporting(self: *const Surface) bool {
|
||||
self.io.terminal.flags.mouse_event != .none;
|
||||
}
|
||||
|
||||
pub fn mouseReportingActive(self: *Surface) bool {
|
||||
self.renderer_state.mutex.lock();
|
||||
defer self.renderer_state.mutex.unlock();
|
||||
return self.isMouseReporting();
|
||||
}
|
||||
|
||||
fn mouseReport(
|
||||
self: *Surface,
|
||||
button: ?input.MouseButton,
|
||||
|
||||
Reference in New Issue
Block a user