Using the previous method won't work under Intel graphics card. The workaround is to use the default windows manager Metacity, without the effects.
1.First, create a text file with this one line:
metacity --replace | blender -w -p 0 0 x y (x is height, and y is length) Eg. 1024 and 768.
2.Save the file as “blender-metacity”.
3.Edit Gnome Menu. Right-click on the menu, then Edit Menus.
4.Click on Graphics, then on the right, Blender (windowed).
6.On the command box click Browse, then choose the text file you created.
Now, you can create an application launcher on the panel to enable compiz:
1.Right-click on the panel, then Add to panel.
2.Click Custom Application Launcher.
3.Name it Compiz.
4.Enter this to the command box: compiz --replace.
5.Choose an Appropriate icon as desired by clicking the icon on the top-left.
6.Click Ok. That's it!