It's part of the theme.
Look into /usr/share/themes/Ambiance/metacity-1/metacity-theme-1.xml
and change the padding
properties to zero (or remove them), e.g:
<frame_style ...>
...
<padding left="7" right="7" bottom="7"/>
</frame_style>
--- Update ---
There's now also a bug report to follow. The bug has been fixed, if you still see this, I'd report a new bug (unless it's happening with windows that can only be resized in fixed sized steps like gnome-terminal).
It looks like I found a way around to deal with the problem for binding the mouse corner over Unity. To do this I installed a program called xdotool to be able to execute commands to be sent till X. I found this answer over the OMG Ubuntu when they talk about binding the upper-left corner to auto open the Desktop Wall utility and for my surprise it worked like a charm. So here go the steps to do for making this way around.
Install xdotool:
sudo apt-get install xdotool
Open ccsm and go to your settings in Desktop Wall (Or whatever you want to bind, Ring Swichter for example)
Look at the commands that you have for binding the edge that you want. For me for example I have to command to switch till the left workspace is ctrl+alt+Left. This is the keystrokes that you have to know to create your binding edge. The others bindings, in my case are ctrl+alt+Rigt, ctrl+alt+Up and ctrl+alt+Down.
In ccsm go to the Commands option
Here we have to enter the xdotoll commands. At command line 1 I already entered the command to open the Unity Desktop Wall Utility so at command line 2 I put the command:
xdotool key ctrl+alt+Rigth
Now go to Edge Bindings tab to create the edge bind.
Now click over the Run command 2 to create the bind.
Choose the right corner and click OK
At this point the ccsm might pop-up that if you want to create this bind you have to disable the Flip Edge effect. I dont even knew that I had this on, it might be enable by default from the Unity. Thats no problem in disable it and enable this bind, so just disable the Flip Edge and enable this new bind (This one is for the Flip Edge effect is from rotate cube binding, and at this example we are using the Desktop Wall, so if you dont had the rotating cube enable it might dont pop up this message).
For creating the new binds for the other corners you just have to follow the same steps as you did for creating the right edge. But please read about the left-edge. The code for the other edges are:
xdotool key ctrl+alt+Up
xdotool key ctrl+alt+Down
The Left edge
xdotool key ctrl+alt+Left
For the left-edge dont use the left corner, instead use the lower-left corner or the upper-left corner. Because the left edge is used by the Unity to hide/access the Unity launcher (dock) and if you disable the default Unity effect IT WILL BROKE your Compiz/Unity. So be careful about disabling the unity effect if it pop it.
So once again, if pop up a compiz message asking for disable the Unity dont disable it, just change the corner to lower-left or upper-left corners.
I hope that it could help you out.
Best Answer
CCSM (short for CompizConfig Settings Manager) lets you configure the settings of Compiz. Unity is a plugin of Compiz whereas gnome-shell is a plugin of mutter. That's why changes made using CCSM doesn't have any effect on gnome-shell.
If you want to customize gnome-shell, you can try gnome-tweak-tool . To install it, search for 'gnome-tweak-tool' in the software center or by running this command in a terminal:
sudo apt-get install gnome-tweak-tool
You can also try the gnome-shell extensions that let you customize the various features of gnome-shell. To try out these extensions, visit the official gnome-shell extensions site.