Background
(This problem does not occur in Unity 2D)
When moving a window around, and putting the cursor to the top of a screen, the orange box expands across the screen and you let go and the window goes full screen.... At least, it's supposed to.
When I'm NOT in Unity2D (i.e. Unity 3D or simply "Unity" as it shows when I log in), I can put the window full screen on my Right-Side monitor, but if I push the window to the top of the left monitor and let go, it snaps to Full-Screen on the RIGHT monitor !!!!!
It's really frustrating, because of course the whole purpose of having two monitors is to be able to view different things at the same time.
Question
Does anyone know what is causing this?
I feel like maybe it's accepting the right side monitor as the "Primary" or something like that. It only occurs sometimes, not constantly. It only started doing it since the update to 12.04. Also, Compiz process is running and taking a LOT of my processor, even if the computer is doing nothing. My CPU used to idle at around 30-31C, but now just sitting there, it's around 39-41C....12.04 is sucking big time right now in my opinion (not worth much).
Thanks for the input!
Solution
I figured it out. Like Pauk said, it has to do with different resolutions.
It only occurs when trying to move a full-size window from large monitor to small monitor.
To solve the problem:
Resize the window in the large monitor so it is smaller than what would be full-screen on the smaller monitor (i.e. the window will fit in the smaller monitor without touching any edges).
Next, drag it to the top of the smaller monitor and release to make it full screen (or drag it to the smaller monitor and "maximize" it).
Like Miceterminator said, you can also drag to the side.....just do something to the window is SMALLER than full-screen of the smaller monitor.
Discussion
So the problem is we are trying to fit a large window (1920x1080 for me) onto a smaller (1600x900 for me) "canvas" so to speak. That explains why it pops back over to the larger monitor. Simply making it small enough to fit on your "smaller canvas," then maximizing it to fill completely, seems to be the solution.
I'm glad we got THAT figured out!
I noticed that happens when you have different resolutions on your monitors. For example, I have laptop with 1366x768 resolution and external monitor in 1920x1080. When you try to maximize (either by snapping it to top edge or via maximize button) and the window height is greater than screens vertical height (on my laptop) it will maximize on the screen with higher resolution (on external monitor).
I would like to point out, that the window snapping is quite glitchy on my dualhead setup as well. However, when compiz choses the wrong monitor for the full screen application I try to snap it to the side of the monitor where I want it (half of the monitor with the window) and when I try to maximize it again on the monitor, it works.
Also be aware of the mouse barrier between the two monitors sometimes the window moves on the other monitor but the mouse stays behind. So if you try to maximize it, compiz uses the monitor on which the mouse is located, so it snaps to the wrong monitor. As the barrier is only to access the launcher on the second monitor I used compiz-config-settings-manager (ccsm) to disable the barrier (I believe you can find it under the unity plugin settings).