Opening and closing Ubuntu applications in multiple displays

Asked by R71

I had posted this question in askubuntu/questions/1129572, but nobody has replied for a month, so I am posting this question again here.

I am facing a peculiar problem in Ubuntu 18.04. I have an extended display in office, and I had opened a csv file with libreoffice and viewed it in the extended display, and then closed it that display.

Now I am at home, and have only the laptop display available, and when I am trying to open the same file (or any other csv file) the file is opened but I don't see it on screen. I know the file is opened because in the vertical bar on the left side of screen, I can see the librecalc icon with one red dot on it, and when I right-click on that icon and press "All Windows" then I can see an icon of the file that is opened with its 3 rows of data. Also when I do "ps -ef | grep libre" I can see the process still running.

    home/xxx$ ps -ef | grep libre
    xxx 7948 1227 0 20:57 ? 00:00:00 /usr/lib/libreoffice/program/oosplash --calc file:///home/xxx/Desktop/desktop_files/try/x1.csv
    xxx 7966 7948 1 20:57 ? 00:00:04 /usr/lib/libreoffice/program/soffice.bin --calc file:///home/xxx/Desktop/desktop_files/try/x1.csv --splash-pipe=5

Next day, when at office and the extended display again available, I could now open the same csv file - the application opened up in the extended display. But this time I dragged the application to the laptop display and closed the application there. After that when I opened the csv file again, this time the file opened properly in the laptop display.

So, how do I reset the application, so that it now opens only in the display that is available? Note: The csv file is very small, just about 300 bytes and 3 rows of data, and it opens fine with MS excel or WPS tools.

This happens with other applications also, eg skype. However, some other applications (eg gvim) do not have this problem.

This is a particularly irritating and production-stop problem because, if I had closed an application in my office in the extended window, then there is no way I can ever open that application again if I dont have an extended window.

I would like to know if this is a known bug in ubuntu, and if not, then what is the solution to this problem?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
Best Manfred Hampl (m-hampl) said :
#1

I do not have a full solution for your problem, but I recommand reading https://help.ubuntu.com/stable/ubuntu-help/shell-windows.html.en#working-with-windows

According to https://help.ubuntu.com/stable/ubuntu-help/shell-windows-states.html.en you should be able to move the invisible window by selecting it in the task bar, pressing alt+F7, then pressing the arrow keys to move the window to your main screen, and then pressing "enter".
If the extended screen is to the right of your laptop screen, then you probably have to use the "left" key.

Revision history for this message
R71 (rsmitra301) said :
#2

Thanks Manfred Hampl, that solved my question.