Opened in new window can't be in front of main window

Operating system

Windows

Joplin version

3.2.13

Desktop version info

Joplin 3.2.13 (prod, win32)

Client ID: 55ce0b2fbc8e4c0c8c573a6923b41b59
Sync Version: 3
Profile Version: 47
Keychain Supported: Yes

Revision: a898e17

Auto show active note in sidebar: 1.0.1
Backup: 1.4.2
Better Code Blocks: 2.0.1
CodeMirror Line Numbers: 2.0.0
Ez Table: 1.0.2
Favorites: 1.3.2
Freehand Drawing: 2.14.0
Insert Date: 1.0.1
Note list (Preview): 0.0.1
Note list and sidebar toggle buttons: 1.0.3
Note Tabs: 1.4.0
Outline: 1.5.14
Paste Special: 1.1.2
Persistent Editor Layout: 2.2.0
Remove Images: 0.0.2
Reset Checkboxes: 1.0.3
Rich Markdown: 0.16.0
Search & Replace: 2.2.0
Table Formatter Plugin: 1.2.1
Templates: 2.4.0

What issue do you have?

When I open a new window (right click on note in sidebar > edit in > new window) the new window cannot be viewed on top of the main window.

So for example I click on the new window in the task bar (or alt tab to it). The new window appears for a flash and then the main window opens.

What is even more strange:

  1. I tile the new window to the right half of the screen.
  2. I tile the main window to the left half
  3. I click inside the new window

When I do that, suddenly the main window leaves it's tiled position ad switches to a smaller position across the screen. If needed I could send a video privately.

ETA: according to this video I should be able to open a note in a new window by clicking on it. That doesn't work. Nothing happens when I click on it in the note list side panel.

Thank you for reporting this!

Double-click to open is currently only supported in the pre-release (3.3.x) versions of Joplin. The 3.3.x pre-release also makes the "edit in new window" action easier to access from the right-click menu in the notes list.

Does this happen with all plugins disabled? Certain plugin commands can cause the main window to gain focus. It's possible that a plugin is running one of these commands in the background (e.g. after focusing the secondary window).

Ah, you got it! It's the Auto show note in sidebar which makes perfect sense. I love that plugin, though. Do I need to make an issue for that plugin, or is this something core needs to deal with?

I don't know who does the wonderful YT videos, but they really ought to include the release number for features.

I'm linking to the relevant issue:

Notes:

  • The plugin runs the focusElementSidebar command whenever the active note changes.
    • This command also focuses the main window, since the sidebar is in the main window.
    • focusElementSidebar is also run by "Go" > "Focus" > "Sidebar" menu item from secondary windows.
  • Usually, switching windows also changes the active note.
  • Joplin core currently doesn't expose an API to determine whether a primary or secondary window is selected.
2 Likes

Hi @personalizedrefriger

I think it's worth me mentioning this window issue here as it seems relevant to the discussion -

Big thanks.

2 Likes