diff options
author | Martin Tournoij <martin@arp242.net> | 2022-10-04 16:28:45 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-10-04 16:28:45 +0100 |
commit | 7904fa420eb577274c4c3711295240100167d495 (patch) | |
tree | a38ab30cb4c947c2ebba45cd7ed711ffd2e719a7 /src/gui_motif.c | |
parent | 4ba5f1dab656103e8f4a4505452d1816b9e83c1e (diff) |
patch 9.0.0657: too many #ifdefsv9.0.0657
Problem: Too many #ifdefs.
Solution: Graduate the +cmdwin feature. Now the tiny and small builds are
equal, drop the small build. (Martin Tournoij, closes #11268)
Diffstat (limited to 'src/gui_motif.c')
-rw-r--r-- | src/gui_motif.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/gui_motif.c b/src/gui_motif.c index 4c5ced5415..55c026eb48 100644 --- a/src/gui_motif.c +++ b/src/gui_motif.c @@ -228,15 +228,19 @@ tabline_menu_cb( return; } + if (event->button == Button2) + { + // Middle mouse click on tabpage label closes that tab. + XtVaGetValues(tabLine_menu, XmNuserData, &tab_idx, NULL); + send_tabline_menu_event(tab_idx, (int)TABLINE_MENU_CLOSE); + return; + } + if (event->button != Button3) return; // When ignoring events don't show the menu. - if (hold_gui_events -# ifdef FEAT_CMDWIN - || cmdwin_type != 0 -# endif - ) + if (hold_gui_events || cmdwin_type != 0) return; if (event->subwindow != None) |