[vte/vte-0-70] widget: Don't consume right clicks on gtk4
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/vte-0-70] widget: Don't consume right clicks on gtk4
- Date: Fri, 23 Sep 2022 18:45:22 +0000 (UTC)
commit ff1b03e450fddae623401d8dc619a6c4f17df42d
Author: Christian Persch <chpe src gnome org>
Date: Fri Sep 23 20:43:47 2022 +0200
widget: Don't consume right clicks on gtk4
gtk4 still needs to handle context menus correctly, but on stable branch
we need to remove always claiming the event since it doesn't do anything
yet.
https://gitlab.gnome.org/GNOME/vte/-/issues/2593
src/vte.cc | 10 ----------
1 file changed, 10 deletions(-)
---
diff --git a/src/vte.cc b/src/vte.cc
index a8671845..09e17cec 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -6800,16 +6800,6 @@ Terminal::widget_mouse_press(vte::platform::MouseEvent const& event)
break;
}
-#if VTE_GTK == 4
- if (!handled &&
- ((event.button() == vte::platform::MouseEvent::Button::eRIGHT) ||
- !(event.modifiers() & (GDK_BUTTON1_MASK | GDK_BUTTON2_MASK)))) {
- _vte_debug_print(VTE_DEBUG_EVENTS, "Showing context menu\n");
- // FIXMEgtk4 context menu
- handled = true;
- }
-#endif /* VTE_GTK == 4 */
-
/* Save the pointer state for later use. */
if (event.button_value() >= 1 && event.button_value() <= 3)
m_mouse_pressed_buttons |= (1 << (event.button_value() - 1));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]