logo       

Re: (no subject): msg#00721

lang.smalltalk.squeak.general

Subject: Re: (no subject)

Bert,

> I'd rather use .xsession , and fix -fullscreen first.
>
> At least here the parameter does nothing, whether with a WM or without.

It worked for me, but then I tried it without a WM and like you say it
creates the window with the saved size. I fixed it. (With a WM it now
creates the window without taking the decoration into account [at least
under twm derivatives], but that's an issue between the user and his/her
window manager.)

If anyone wants this right away, in SetUpWindow() find the section

if (savedWindowSize != 0)
{
right= windowBounds.x + ((unsigned) savedWindowSize >> 16);
bottom= windowBounds.y + (savedWindowSize & 0xFFFF);
}
else
{
right= windowBounds.x + windowBounds.width;
bottom= windowBounds.y + windowBounds.height;
}

and replace it with:

if (fullScreen)
{
right= scrW;
bottom= scrH;
}
else if (savedWindowSize != 0)
{
right= windowBounds.x + ((unsigned) savedWindowSize >> 16);
bottom= windowBounds.y + (savedWindowSize & 0xFFFF);
}
else
{
right= windowBounds.x + windowBounds.width;
bottom= windowBounds.y + windowBounds.height;
}

Ian





<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise