views:

14

answers:

0

I recently got a Matrox Dualhead2Go for my Mac and now I have the problem that some applications that run in fullscreen stretch over two of my monitors. Matrox DH2G "simulates" one monitor with 3840x1200 resolution across my two 1920x1200 monitors.

The main applications I want this for is VLC and when viewing flash video in fullscreen. I want them to only fill the screen of one monitor, and since i'm unable to find an application that can do this I was thinking of doing my own.

But where do I start? I basically want to get a callback whenever an application tries to enter fullscreen and then be able to force the boundaries within one of my screens. I was trying to reverse-engineer "Right Zoom" but it seems like it's using the assistive API and specifically catching a click in the location of the zoom-button and then changing the size of the window.