qupzilla icon indicating copy to clipboard operation
qupzilla copied to clipboard

Tab opens on wrong virtual desktop

Open dfaure opened this issue 6 years ago • 2 comments

Using Linux (Plasma 5) with multiple virtual desktops,

  • start QupZilla on desktop 1
  • open another window in desktop 2
  • back to desktop 1, type "qupzilla http://www.google.fr" in a terminal => the new tab opens in desktop 2, while the current desktop is where I expect the tab to show up, so I don't have to hunt for the tab in other desktops.

It looks like the window where the last activity (e.g. opening a tab) happened, is where new tabs will go. It would be much better to open new tabs (called externally, e.g. by clicking on a link in KMail or typing a URL in KRunner etc.) on the current desktop. Ideally with the following logic:

  • if there's a window on the current desktop, add the tab to it, and raise the window
  • if there's no window on the current desktop, create one.

My tab settings are: all checkboxes unchecked except 'Open new tabs after active tab', if it matters.

dfaure avatar Jul 29 '17 06:07 dfaure

I can't reproduce that. (but not Plasma...)

ghost avatar Jul 29 '17 06:07 ghost

That's exactly how it works and there is much to be improved, but it require platform specific code which is partially the reason why it is like this.

if there's a window on the current desktop, add the tab to it, and raise the window

Also it should prefer the window that is on top in case of more windows on current virtual desktop.

if there's no window on the current desktop, create one.

I don't really like this, it is how eg. Kate works, so this should be config option disabled by default.

nowrep avatar Jul 29 '17 16:07 nowrep