This is a fix for the issue in Openbox by editing the file "rc.xml" (or "___-rc.xml" in some distros, i.e. "lxde-rc.xml").
Edit the file ~/.config/openbox/rc.xml and inside <applications></applications> insert this:
Code:
<applications>
<application name="Kodi" class="Kodi" title="Kodi" type="normal">
<layer>above</layer><!-- make Kodi window always on top (if you don't wan't it just delete the line or change from "above" to "normal") -->
<position><!-- this is the exact position on the screen that I want my Kodi window to start at, change it according to your needs -->
<x>682</x>
<y>84</y>
<width>664</width><!-- this is the exact size that I want for my Kodi window to always start at, change it according to your needs -->
<height>372</height>
</position>
<popupPosition>Fixed</popupPosition><!-- this will force the fixed position of Kodi window, change it according to your needs -->
<popupFixedPosition>
<x>682</x>
<y>84</y>
</popupFixedPosition>
</application>
</applications>
All the settings are explained inside the code, change them according to your needs. With this you can use "\" and switching between fullscreen and windowed mode will no longer get you a fullsized window.
For easily finding out the exact coordinates and size of your desired Kodi window just run Kodi, set the Kodi window just has you want it always to be, open the terminal, type the command:
and then click on Kodi window. You'll then be shown on the terminal all you need: coordinates and measures of the window.
If you need to find the class, name, role, title and type parameters just run Kodi, run this command on the terminal:
Code:
obxprop | grep "^_OB_APP"
and then click on Kodi window. You'll then be shown on the terminal those parameters.