mirror of
https://github.com/rkd77/elinks.git
synced 2024-06-30 01:55:30 +00:00
menu_handler: Don't call get_parent_ptr for redraw events
Only call get_parent_ptr for resize events so that the menu isn't moved to the cursor position for normal redraw events.
This commit is contained in:
parent
3602899e3e
commit
1a89589b13
|
@ -983,8 +983,8 @@ menu_handler(struct window *win, struct term_event *ev)
|
||||||
switch (ev->ev) {
|
switch (ev->ev) {
|
||||||
case EVENT_INIT:
|
case EVENT_INIT:
|
||||||
case EVENT_RESIZE:
|
case EVENT_RESIZE:
|
||||||
case EVENT_REDRAW:
|
|
||||||
get_parent_ptr(win, &menu->parent_x, &menu->parent_y);
|
get_parent_ptr(win, &menu->parent_x, &menu->parent_y);
|
||||||
|
case EVENT_REDRAW:
|
||||||
count_menu_size(win->term, menu);
|
count_menu_size(win->term, menu);
|
||||||
/* do_menu sets menu->selected = 0. If that
|
/* do_menu sets menu->selected = 0. If that
|
||||||
* item isn't actually selectable, correct
|
* item isn't actually selectable, correct
|
||||||
|
|
Loading…
Reference in New Issue
Block a user