On Thursday 10 October 2002 14:31, Jeremy C. Reed wrote:
>
> Can you point us to the blackbox code that has this limitation?
>

I thought this might come up (-:

So here are the problems (note the plural)

1) a section of the code involved assumes unsigned (no negatives) values.  
This relates to be resize bug recently submitte where the problem is the 
values go negative and they wrap leading to an overly large window which 
contrain then reduces.

2) the constrain method in Window.cc is used by move, resize, and maximize.  
The offending section of code is this:

  // constrain
  if (dw < client.min_width) dw = client.min_width;
  if (dh < client.min_height) dh = client.min_height;
  if (dw > client.max_width) dw = client.max_width;
  if (dh > client.max_height) dh = client.max_height;

max_height and max_width are set to the screen size unless the client sets it 
themself.  constrains job is to ensure the window obeys all of its size hints 
so this is also where term windows are checked to make sure they are 
multiples of their resize inc.

3) motionNotifyEvent() is where the resize and move is handled

--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
List archives:  http://asgardsrealm.net/lurker/splash/index.html
Trouble? Contact [EMAIL PROTECTED]

Reply via email to