Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libreoffice opens as vertical window instead of tab in some cases #4591

Open
tbm opened this issue Sep 26, 2019 · 4 comments
Open

libreoffice opens as vertical window instead of tab in some cases #4591

tbm opened this issue Sep 26, 2019 · 4 comments

Comments

@tbm
Copy link
Contributor

tbm commented Sep 26, 2019

I'm seeing some weird behaviour in sway when opening LibreOffice. Specifically, in some cases the LibreOffice opens a new window in vertical mode when I'm expecting a new tab.

For some reason I'm in V[T[...]] mode instead of just T[]. I don't even know how I managed that, but I managed to reproduce it with these steps:

  • Open empty workspace
  • mod-v
  • open terminal
  • open terminal
  • in lower terminal: mod-b open terminal
  • in upper terminal: mod-b open terminal mod-w
  • in lower terminal: close both terminals

Now I have:

Workspace 6 (focused)
  Output: eDP-1
  Layout: splitv
  Representation: V[T[gnome-terminal-server gnome-terminal-server]]

When I open LibreOffice Writer without any arguments, it correctly opens as a new tab:

Representation: V[T[gnome-terminal-server gnome-terminal-server libreoffice-startcenter]]

I close LibreOffice.

Now I open LibreOffice and specify a file to open and suddenly LibreOffice opens as a new vertical window. I was expecting it as another tab.

Representation: V[T[gnome-terminal-server gnome-terminal-server] libreoffice-startcenter]

If I open other applications (e.g. evidence) (with or without arguments) they open correctly as tabs.

I see some other weird behaviour with LibreOffice and sway (I haven't opened issues yet) so maybe LibreOffice does something wrong. But I thought I'd report here.

This is with sway 1.2.

@tbm
Copy link
Contributor Author

tbm commented Sep 26, 2019

Case 1:

test1

Case 2:

test2

@tbm
Copy link
Contributor Author

tbm commented May 17, 2020

I still see this wrong behaviour with sway 1.4. Any help would be appreciated.

@tbm
Copy link
Contributor Author

tbm commented Aug 18, 2020

I still see this wrong behaviour with sway 1.5. This time with calibre. Any help would be appreciated.

@tbm
Copy link
Contributor Author

tbm commented Aug 18, 2020

For some reason I'm in V[T[...]] mode instead of just T[]. I don't even know how I managed that

Aha, I see a pattern here. This time I'm in H[T[...]] mode.

But again, since my terminal is in in the T[] scope, I would expect calibre to be opened in tabbed mode, not in horizontal mode. But I get:

Workspace 4 (focused)
  Output: eDP-1
  Layout: splith
  Representation: H[T[gnome-terminal-server gnome-terminal-server gnome-terminal-server gnome-terminal-server gnome-terminal-server gnome-terminal-server gnome-terminal-server] calibre]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant