GNOME Bugzilla – Bug 758503
API for querying mouse protocol
Last modified: 2021-06-10 15:07:54 UTC
Once upon a time we fixed bug 13299 (for g-t to cleverly handle right click). Now there's an analogous story https://bugs.launchpad.net/terminator/+bug/1505292. Terminator zooms on Ctrl+scroll, but a user wishes to see escape sequences. I think the ideal would be to see if the app handles mouse events, send those in that case, otherwise zoom. vte_terminal_scoll(), however, always returns TRUE, since the widget always handles scroll events, one way or another. How could we solve this problem? Maybe an explicit API to get whether mouse tracking is enabled?
I guess this is about this block in ::widget_scroll() ? } else { /* Perform a history scroll. */ double dcnt = m_screen->scroll_delta + v * m_mouse_smooth_scroll_delta; queue_adjustment_value_changed_clamped(dcnt); m_mouse_smooth_scroll_delta = 0; } which you want to only run when no modifiers are present, and have ::widget_scroll() return a bool for 'handled', and have VteTerminal's GtkWidgetClass->scroll_event return FALSE for unhandled?
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/vte/-/issues/2251.