menu_handler: Don't call get_parent_ptr for redraw events
commit63de05a5851fb8609e7d2c896c98b6d08346c037
authorMiciah Dashiel Butler Masters <miciah@myrealbox.com>
Sat, 3 Mar 2007 12:44:45 +0000 (3 12:44 +0000)
committerKalle Olavi Niemitalo <Kalle@Astalo.kon.iki.fi>
Sun, 1 Apr 2007 19:05:43 +0000 (1 22:05 +0300)
tree6f075cf276c2255c9f1cd008ce808f83f7f68fda
parentd0255cf7dd655f8d3cb3e31252a3ba5b03e5fdfc
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.

Without this change, if ui.leds.enable and ui.clock.enable are 1 and
the user opens the tab menu, it first appears near the tab bar and
almost immediately jumps near the cursor.  With this change, the tab
menu stays near the tab bar.  However, if the user presses Ctrl+L,
then the menu still jumps; but that is less annoying than having it
jump on its own.

[ From commit 1a89589b13bf34e85a445ae7ba84602bc0522f81 in ELinks
  0.12.GIT.  --KON ]
src/bfu/menu.c