Remove some unnecessary focus switches
authorTom Tromey <tom@tromey.com>
Wed, 13 Nov 2019 00:15:12 +0000 (17:15 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 20 Dec 2019 16:15:51 +0000 (09:15 -0700)
commitd4669c0fc75ad5ad2e99748f9307b5038955f9d3
tree9578f9233074c3b67d92d0d9dfa89d01259e0f98
parent1ae58f0c640ccef6ae9cc9b349547bb552274b69
Remove some unnecessary focus switches

A couple of lower-level utility functions can change the TUI focus.
This seems incorrect to me -- focus switches should only be done
either by explicit user request, or ass a side effect of changing the
layout.

gdb/ChangeLog
2019-12-20  Tom Tromey  <tom@tromey.com>

* tui/tui-winsource.c
(tui_source_window_base::update_source_window_as_is): Don't switch focus.
* tui/tui-disasm.c (tui_show_disassem): Don't switch focus.

Change-Id: I0a5bb8a407cf8d52e2fd23b0598eb9bce56b1251
gdb/ChangeLog
gdb/tui/tui-disasm.c
gdb/tui/tui-winsource.c