> We have values stashed up for the maximum window width and height.
> You can configure them via MaxWindowSize, but they need some value
> even if you don't set it, so we initialize it during startup.  We do
> that here[0].

        Scr->MaxWindowWidth  = 32767 - Scr->rootw;
        Scr->MaxWindowHeight = 32767 - Scr->rooth;

My reading of this code says that the reason why it's written that way
it's to ensure that the position of all four corners will be <=32767,
as long as one of the corners is within the root window.  IOW this is
the maximum size which still allows the user to place the window
anywhere within the root window.

> What the heck?  The bigger our screen gets, the smaller the maximum
> window size is?  "4k" monitors tend to be 3840 pixels wide, so if you
> had 8 of 'em laid out side by side for your desktop (a ridiculous and
> impractical, but nowadays no longer impossible setup[3]), your x
> coordinate would go up to 30720, which means you couldn't have a
> window wider than 2047 pixels (half a monitor)!  There's no way that
> can be right.

Past 2047pixels, your window's placement would become constrained by the
need for all four corners's coordinates to be <=32767.


        Stefan

Reply via email to