diff --git a/pd/nw/locales/en/translation.json b/pd/nw/locales/en/translation.json index 747380ff906341cb3a256cb83af5de9314be321c..3a032575e33f15d7bb6ed0047658c2dd1dfde4e4 100644 --- a/pd/nw/locales/en/translation.json +++ b/pd/nw/locales/en/translation.json @@ -200,8 +200,8 @@ "prevwin_tt": "Give focus to the previous window in the stacking order", "parentwin": "Parent Window", "parentwin_tt": "give focus to the parent window of the current window", - "visible_parentwin": "Visible Parent Window", - "visible_parentwin_tt": "give focus to the closest ancestor of this window that is visible", + "visible_ancestor": "Closest Visible Ancestor", + "visible_ancestor_tt": "give focus to the closest ancestor of this window that is currently visible", "pdwin": "Pd Window", "pdwin_tt": "Give focus to the main Pd window", diff --git a/pd/nw/pd_canvas.js b/pd/nw/pd_canvas.js index 396484d6fce8d5003dbe4b1f0d3fecb3da1d85aa..cf2544a4d16295ce9923a7fba56cba444e1ea586 100644 --- a/pd/nw/pd_canvas.js +++ b/pd/nw/pd_canvas.js @@ -1245,11 +1245,11 @@ function nw_create_patch_window_menus(name) { })); winmanMenu.append(new gui.MenuItem({ - label: l("menu.visible_parentwin"), + label: l("menu.visible_ancestor"), click: function() { pdgui.pdsend(name, "findparent", 1); }, - tooltip: l("menu.visible_parentwin_tt"), + tooltip: l("menu.visible_ancestor_tt"), })); winmanMenu.append(new gui.MenuItem({ diff --git a/pd/nw/pdgui.js b/pd/nw/pdgui.js index dcce0c4626545f256bcb7439abeaa7d64c9ee4ff..0991bdfcc7b55a1648cae6b39c1dc18d6c120f24 100644 --- a/pd/nw/pdgui.js +++ b/pd/nw/pdgui.js @@ -2896,11 +2896,11 @@ function gui_raise_window(cid) { patchwin[cid].focus(); } -function raise_pd_window() { +function gui_raise_pd_window() { pd_window.focus(); } -exports.raise_pd_window= raise_pd_window; +exports.raise_pd_window= gui_raise_pd_window; // Openpanel and Savepanel diff --git a/pd/src/g_editor.c b/pd/src/g_editor.c index e4dce60f6742eb769e9c72ec71f84545c8f2fa33..af5b0ce499af97035632ebea4ba1b9c155196659 100644 --- a/pd/src/g_editor.c +++ b/pd/src/g_editor.c @@ -5766,7 +5766,8 @@ static void canvas_find_parent(t_canvas *x, t_floatarg f) } else { - sys_gui("menu_raise_console\n"); + //sys_gui("menu_raise_console\n"); + gui_vmess("gui_raise_pd_window", ""); } }