From 4c7f59163c415140d76330a1b3c57b1efe35ca14 Mon Sep 17 00:00:00 2001 From: bl0ckeduser Date: Tue, 12 Jan 2016 14:01:05 -0500 Subject: Small additional for closing tabs with middle-click fixes https://github.com/mate-desktop/caja/issues/457 --- src/caja-notebook.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/caja-notebook.c b/src/caja-notebook.c index 035ef769..2bd6a208 100644 --- a/src/caja-notebook.c +++ b/src/caja-notebook.c @@ -220,7 +220,7 @@ button_press_cb (CajaNotebook *notebook, tab_clicked = find_tab_num_at_pos (notebook, event->x_root, event->y_root); if (event->type == GDK_BUTTON_PRESS && - event->button == 3 && + (event->button == 3 || event->button == 2) && (event->state & gtk_accelerator_get_default_mod_mask ()) == 0) { if (tab_clicked == -1) -- cgit v1.2.1