Ubuntu – Windows of an application have minimum size and I can’t find the window anymore

libreofficewindow

I had an application (in case it matters: LibreOffice Calc] in full-size mode. I then clicked the middle of the three buttons of the top right to adjust the size. When I did that, the window became minimum size, literally a vertical line.

I panicked and alt-tabbed, and now I can't even find the vertical line anymore. Opening new windows in that application opens all of them hidden to me, and closing/reopening or even restarting the OS doesn't help. I don't know how to resize my invisible windows anymore. Here's the preview of the windows in the application launcher: a vertical line (that I don't find on my screen anywhere if I click this).

enter image description here

Best Answer

I did an investigation in LibreOffice version 6.4 and found out that the following line in file ~/.config/libreoffice/4/user/registrymodifications.xcu stores the window coordinates for calc:

<item oor:path="/org.openoffice.Setup/Office/Factories/org.openoffice.Setup:Factory['com.sun.star.sheet.SpreadsheetDocument']"><prop oor:name="ooSetupFactoryWindowAttributes" oor:op="fuse"><value>0,37,800,600;1;0,0,0,0;</value></prop></item>

You have to have all LibreOffice application windows closed before editing this file.

Open this file and try to locate this line. In my file it was at line position 1258. Note that the values inside <value>…</value> will be different for you. You can change yours to the values displayed above, which will give you a roughly 800×600 application window located at the upper left corner of your screen.

After you save the file, open calc and resize its window according to your needs.

Related Question