[haiku-development] Re: Detect overlapping window

"Mohmed Hammassani" <mohmed85@xxxxxxxxx> wrote:
> I am trying to implement some window management features. The feature 
> i am
> currently interested in is tabbing. Say we have two windows on the 
> desktop,
> window A and window B. When window B is dragged using its tab and 
> dropped
> over window A's tab, window B takes on window A's size and window B's 
> tab
> gets shifted so that its to the right of window A's tab.

As a general rule, code that knows about more than one window should 
probably go into the Desktop class. There are only few exceptions to 
this, like ServerApp also knows about all windows of one app.

Bye,
   Axel.


Other related posts: