pulsar icon indicating copy to clipboard operation
pulsar copied to clipboard

New Windows opens in same workspace

Open croaker000 opened this issue 1 year ago • 3 comments

Thanks in advance for your bug report!

  • [X] Have you reproduced issue in safe mode?
  • [X] Have you used the debugging guide to try to resolve the issue?
  • [X] Have you checked our FAQs to make sure your question isn't answered there?
  • [X] Have you checked to make sure your issue does not already exist?
  • [X] Have you checked you are on the latest release of Pulsar?

What happened?

Ubuntu Linux (v24.04 but likely for previous versions too) Pulsar icon on Gnome Dock offers a "New Window" option to open a new instance of Pulsar. If the user already has an open Pulsar window, moves to a different workspace and opens a new window, Pulsar does this back in the workspace where the original window is located moving the user back to the previous workspace in the process. New window can be moved to desired workspace manually once open.

Pulsar version

1.117

Which OS does this happen on?

🐧 Debian based (Linux Mint, Ubuntu, etc.)

OS details

24.04

Which CPU architecture are you running this on?

x86_64/AMD64

What steps are needed to reproduce this?

Use a vanilla instance of Ubuntu with more than one Gnome workspaces enabled. Follow bug description

Additional Information:

No response

croaker000 avatar May 31 '24 08:05 croaker000

ping on this

flatmax avatar Jun 17 '24 03:06 flatmax

I don't use different virtual desktops (“spaces” on macOS, etc.) and I don't know what Electron's default behavior is here, but if someone wants to track down how this could be fixed, we'd be willing to help.

I'm unclear on whether there's a distinction between multiple physical displays (i.e., I connect two monitors to my PC) and multiple virtual displays (I set up three spaces on macOS). If they're treated identically on the layer that's available to Electron, then it's at least possible to micromanage the display on which a new window is created. The APIs are a bit awkward, but they're there.

If they're treated differently, then I'm not certain that this is something that an Electron app has control over.

If anyone has experience with this, I'd be interested in hearing it.

savetheclocktower avatar Jun 17 '24 03:06 savetheclocktower

Actually, I think this might be the exact workaround that we need.

savetheclocktower avatar Jun 17 '24 04:06 savetheclocktower