Open /usr/share/themes/<theme name>/gtk-2.0/gtkrc and find the style "osso-window-background". Once found, make the line describing the borders look like "HildonWindow::borders = { 0, 0, 0, 0 }".