mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-03 10:04:32 +03:00
Relative to Ticket #1643: restore patch 'Mouse support in first line when menu is hidden'
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
parent
ff5dd64c6b
commit
bd29603b41
19
src/screen.c
19
src/screen.c
@ -2962,19 +2962,6 @@ do_panel_event (Gpm_Event *event, WPanel *panel, int *redir)
|
||||
return MOU_NORMAL;
|
||||
}
|
||||
|
||||
/* sort on clicked column */
|
||||
if (event->type & GPM_DOWN && event->y == 2) {
|
||||
mouse_sort_col(event,panel);
|
||||
return MOU_NORMAL;
|
||||
}
|
||||
|
||||
/* rest of the upper frame, the menu is invisible - call menu */
|
||||
if (mouse_down && event->y == 1 && !menubar_visible) {
|
||||
*redir = 1;
|
||||
event->x += panel->widget.x;
|
||||
return (*(the_menubar->widget.mouse)) (event, the_menubar);
|
||||
}
|
||||
|
||||
/* "<" button */
|
||||
if (mouse_down && event->y == 1 && event->x == 2) {
|
||||
directory_history_prev (panel);
|
||||
@ -2993,6 +2980,12 @@ do_panel_event (Gpm_Event *event, WPanel *panel, int *redir)
|
||||
return MOU_NORMAL;
|
||||
}
|
||||
|
||||
/* sort on clicked column */
|
||||
if (event->type & GPM_DOWN && event->y == 2) {
|
||||
mouse_sort_col(event,panel);
|
||||
return MOU_NORMAL;
|
||||
}
|
||||
|
||||
/* rest of the upper frame, the menu is invisible - call menu */
|
||||
if (mouse_down && event->y == 1 && !menubar_visible) {
|
||||
*redir = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user