Creating a window manager
I am in the process of creating a window manager (small scale) to handle some window management that I require for an application I am writing.

The main tasks of the window manager are to:
Test certain windows don't overlap.
Test whether a window can be moved via a left click and drag (default windows behaviour)
Or a right click and drag etc.. 
Allow other general window management stuff.

I was thinking of using the Model View Controller pattern but wasn't sure.

Any advise would be much appreciated.

Thanks in advance
Creating a window manager
===

I am in the process of creating a window manager (small scale) to handle some window management that I require for an application I am writing.

The main tasks of the window manager are to:
Test certain windows don't overlap.
Test whether a window can be moved via a left click and drag (default windows behaviour)
Or a right click and drag etc.. 
Allow other general window management stuff.

I was thinking of using the Model View Controller pattern but wasn't sure.

Any advise would be much appreciated.

Thanks in advance