Ok let me first depict what is the target. The program 86Box is an emulator that has a static non resizable window with a menu, toolbar, and virtual machine graphics output - the window size will be at the resolution of the emulated display * scale factor + whatever is needed for menu and toolbar.
Once you hit fullscreen Ctrl+alt+pgup, or from menu, obviously the virtual display gets streched as much as possible to fit the display and nothing more is shown.
Getting in and out of fullscreen is important, so one can mount virtual disks and perform other VM mgmt tasks.
So what happens when you run it without any window manager, is obviously a static non-resizable 'window' in top-left, but once you go fullscreen inside the program, it just loses the menu and toolbar, there is no full screen stretch.
I use a .xinitrc script to engage my GUIs. I wanted to use this approach to kick off virtual machine session from the CLI. No WM, no frills, not needed there. The reason to do this all is hunting top perfomance out of the emulator with minimum running stuff on the host OS, and also having a seamless simulated DOS computer that I can kick off from the console.
I appreciate the Windowmaker recommendation by blackbird, but as I've said I don't need a WM and I already use Windowmaker - and I have already established I get a tad better performance by using 86Box under wmaker than plasma.
I've got idea from bda65 to run Blender, and Blender works. So we can safely assume it is down to the application to implement something, or 86box guys implemented something wrong. Also bda65's xterm line is exactly how I kick "fullscreen" Xterm in my setup. But it is not fullscreen hence the quotes - it is maximized, and borderless, with nothing else to take its focus, but it is not fullscreen per se. Because if you kick off xterm without the geometry line, or don't set it externally as I do, its internal fullscreen option doesn't work - just like 86box.
Code:
#!/usr/local/bin/bash
xrdb -merge ~/.Xresources
case $WM in
xterm)
xrandr --output HDMI-0 --off
xdotool search --onlyvisible --sync xterm windowmove 0 0 windowsize 100% 100% &
exec /usr/local/bin/xterm
;;
dos)
xrandr --output HDMI-0 --off
#xdotool search --onlyvisible --sync "P54C - 86Box 5.4" windowmove 0 0 windowsize 100% 100% &
exec /home/z/Files/projects/86Box/build/optimized/src/86Box -F "/home/z/.local/share/86Box/Virtual Machines/P54C/86box.cfg"
;;
blend)
xrandr --output HDMI-0 --off
exec /usr/local/bin/blender -W
;;
wmaker)
xrandr --output HDMI-0 --off
exec /usr/local/bin/wmaker
;;
cde)
xrandr --output HDMI-0 --off
exec env LANG=C /usr/local/dt/bin/Xsession
;;
*)
exec dbus-launch --exit-with-x11 ck-launch-session startplasma-x11
;;
esac