From 31fffbdb6d623a0f35a7d3fe89657c7945300f15 Mon Sep 17 00:00:00 2001 From: heckflosse Date: Sun, 16 Jul 2017 19:29:59 +0200 Subject: [PATCH] Bring secondary window to front if it's on the same monitor as the primary window, #3957 --- rtgui/editwindow.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rtgui/editwindow.cc b/rtgui/editwindow.cc index f4e22e485..435215869 100644 --- a/rtgui/editwindow.cc +++ b/rtgui/editwindow.cc @@ -237,10 +237,10 @@ bool EditWindow::selectEditorPanel(const std::string &name) void EditWindow::toFront () { - // when using MEOW mode on a single monitor we need to present the secondary window. - // If we don't it will stay in background when opening 2nd, 3rd... editor, which is annoying + // when using the secondary window on the same monitor as the primary window we need to present the secondary window. + // If we don't, it will stay in background when opening 2nd, 3rd... editor, which is annoying // It will also deiconify the window - if(!isMultiDisplayEnabled()) { + if(parent->get_screen()->get_monitor_at_window(parent->get_window()) == parent->get_screen()->get_monitor_at_window(this->get_window())) { present(); } }