No bug. It is as you say trying to preview screensaver in little window. The best you can do is detect this and quit screensaver.
Windows simply sends parameters to your .scr file. It's up to you to act on them:
if cl$()="" or cl$()="/p" or left$(cl$(),2)="/s"
sync on : autocam off : color backdrop 0 : hide mouse
ink rgb(255,255,255),0
make object cube 1,75
color object 1,rgb(255,0,0)
make object sphere 2,10
color object 2,rgb(0,0,255)
position camera 0,0,-200
do
if mouseclick() > 0 or scancode() > 0 or mousemovex() <> 0 or mousemovey() <> 0 or mousemovez() <> 0 then exit
xrotate object 1,wrapvalue(object angle x(1)-0.1)
yrotate object 1,wrapvalue(object angle y(1)+0.1)
a#=wrapvalue(a#+0.5)
position object 2,newxvalue(0,a#,75),0,newzvalue(0,a#,75)
sync
loop
else
if left$(cl$(),2)="/c"
ink rgb(255,255,255),0
print "There is nothing to configure for this screensaver"
print "press any key to exit"
wait key
endif
endif
If your mansion house needs haunting, just call Rentaghost!