diff options
author | bl0ckeduser <[email protected]> | 2016-01-12 14:01:05 -0500 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2016-01-14 23:27:30 +0100 |
commit | 4c7f59163c415140d76330a1b3c57b1efe35ca14 (patch) | |
tree | 14afd922578a72c1c132e2f009e8d8deae1ee524 /src | |
parent | 3b7b4cfa969402c5cc9e45369f552729f2b65308 (diff) | |
download | caja-4c7f59163c415140d76330a1b3c57b1efe35ca14.tar.bz2 caja-4c7f59163c415140d76330a1b3c57b1efe35ca14.tar.xz |
Small additional for closing tabs with middle-click
fixes https://github.com/mate-desktop/caja/issues/457
Diffstat (limited to 'src')
-rw-r--r-- | src/caja-notebook.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |