summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2023-02-15 19:33:44 +0100
committerChristian Persch <chpe@src.gnome.org>2023-02-15 19:33:44 +0100
commit5cabbd7b8d9fe2f78068916835f54c54c9b77f2a (patch)
tree4269dfc791dcb830eea908f6ae9d94b42fbe9881
parent680dc9a3fb312aa995efe01aa6a569a259d0bc8e (diff)
downloadvte-5cabbd7b8d9fe2f78068916835f54c54c9b77f2a.tar.gz
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 (cherry picked from commit 5bf476f1d7283bc805ac8ae6abe94f81ffd7be05)
-rw-r--r--src/vte.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/vte.cc b/src/vte.cc
index 9a6568f7..92b19fc8 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -4964,15 +4964,6 @@ Terminal::widget_key_press(vte::platform::KeyEvent const& event)
return true;
}
-#if VTE_GTK == 4
- if (!handled &&
- event.matches(GDK_KEY_Menu, 0)) {
- _vte_debug_print(VTE_DEBUG_EVENTS, "Showing context menu\n");
- // FIXMEgtk4 do context menu
- handled = true;
- }
-#endif
-
return false;
}