mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-12 08:41:46 +00:00
Handle activateWindow in LFUN_BUFFER_SWITCH like in saveBufferIfNeeded() and doShowDialog() methods.
This is a requirement on Mac to get the current buffer view topmost after buffer switch.
This commit is contained in:
parent
e17bd37955
commit
d29da1daa4
@ -3615,7 +3615,9 @@ void GuiView::dispatch(FuncRequest const & cmd, DispatchResult & dr)
|
|||||||
for (; i != ids.size(); ++i) {
|
for (; i != ids.size(); ++i) {
|
||||||
GuiView & gv = guiApp->view(ids[i]);
|
GuiView & gv = guiApp->view(ids[i]);
|
||||||
if (gv.workArea(*buffer)) {
|
if (gv.workArea(*buffer)) {
|
||||||
|
gv.raise();
|
||||||
gv.activateWindow();
|
gv.activateWindow();
|
||||||
|
gv.setFocus();
|
||||||
gv.setBuffer(buffer);
|
gv.setBuffer(buffer);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -48,6 +48,9 @@ What's new
|
|||||||
|
|
||||||
- Fix on screen narrow box when using \width as box width unit (bug 10048).
|
- Fix on screen narrow box when using \width as box width unit (bug 10048).
|
||||||
|
|
||||||
|
- Raise GuiView on buffer switch to bring it topmost in multi-window mode.
|
||||||
|
|
||||||
|
|
||||||
* INTERNALS
|
* INTERNALS
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user