[as-devel] Re: not so Smart Window Placement in 1.7.119

Ethan (allanon@crystaltokyo.com)
Thu, 8 Jul 1999 06:01:24 -0700 (PDT)



On Thu, 8 Jul 1999, Frederick Bruckman wrote:

> With SmartPlacement, if there's no room for the window to be drawn
> without obscuring another window, you get an outline to place it
> manually. OK. Now if I open a window that's covered by "StartsOnDesk"
> in the database, and there's no room on the destination page, I have
> to place it manually on the current page, and only then is the page
> switched.
> 
> IMO, this is screwy. I should be switched to the destination before
> the outline is drawn, so I can see where to place the window.

I agree.  I'd like to change desks before PlaceWindow() is called in 
AddWindow().  There's a comment before the call to changeDesks(), 
however:

  BroadcastConfig (M_ADD_WINDOW, tmp_win);
/* added by Sasha Vasko to notify pager about new win before changing desktops */
  if (!PPosOverride)
    {
      changeDesks (0, tmp_win->Desk);
      if (nl.ViewportX >= 0 && nl.ViewportY >= 0)
        MoveViewport (nl.ViewportX, nl.ViewportY, 0);                
    }

Sasha: Can we move the desk change?  The BroadcastConfig() won't have 
accurate placement info at that point, of course.

----
Ethan Fischer
allanon@crystaltokyo.com
http://members.xoom.com/allanon1