From 5db7d1d3d2cfe5c1869a88708c07b8a981f98786 Mon Sep 17 00:00:00 2001 From: Sean Baggaley Date: Mon, 15 Sep 2025 13:52:34 +0100 Subject: eom-window: Add additional key codes for image switching using mouse buttons This should re-establish that function for newer X setups. As we don't know whether the old keycodes could still occur, we simply keep for compatibility. Backported from https://gitlab.gnome.org/GNOME/eog/-/commit/b23508382f0131d9961e437fe8c8453adeb84faa --- src/eom-window.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/eom-window.c b/src/eom-window.c index 3d572f9..e24738b 100644 --- a/src/eom-window.c +++ b/src/eom-window.c @@ -5099,14 +5099,19 @@ eom_window_button_press (GtkWidget *widget, GdkEventButton *event) EomWindow *window = EOM_WINDOW (widget); gint result = FALSE; + /* We currently can't tell whether the old button codes (6, 7) are + * still in use. So we keep them in addition to the new ones (8, 9) + */ if (event->type == GDK_BUTTON_PRESS) { switch (event->button) { case 6: + case 8: eom_thumb_view_select_single (EOM_THUMB_VIEW (window->priv->thumbview), EOM_THUMB_VIEW_SELECT_LEFT); result = TRUE; break; case 7: + case 9: eom_thumb_view_select_single (EOM_THUMB_VIEW (window->priv->thumbview), EOM_THUMB_VIEW_SELECT_RIGHT); result = TRUE; -- cgit v1.2.1