Fix frame focus redirection with shared minibuffer windows (Bug#24500)
commit421c0512f76683e0b85ea5e1362291c2da4149ba
authorMartin Rudalics <rudalics@gmx.at>
Mon, 17 Oct 2016 08:52:01 +0000 (17 10:52 +0200)
committerMartin Rudalics <rudalics@gmx.at>
Mon, 17 Oct 2016 08:52:01 +0000 (17 10:52 +0200)
tree94673c576f72fbfd01d1d3faeaf7e24d60ef4946
parent027c350e0cde1876f811b845cb10d3faa8f45665
Fix frame focus redirection with shared minibuffer windows (Bug#24500)

* src/frame.c (do_switch_frame): Redirect frame focus also when
the frame switched to has its minibuffer window on the selected
frame.
* src/window.c (candidate_window_p): To qualify as candidate
it's not sufficient for the window's frame to just share the
minibuffer window - it must be active as well.
src/frame.c
src/window.c