5

I'm using Oneiric 11.10, Unity 2D, and compiz (modifying some ccsm settings); I've activated the effects plug-in on ccsm, and when I apply the changes by typing in the terminal compiz --replace, I get two title bars in a maximized window rather than only one, the first: the one which is integrated with the unity bar, and the other: the one of the window.

Here are some pictures:

Scott Severance
  • 13,776
  • 9
  • 52
  • 76
JesusLives ii
  • 797
  • 2
  • 10
  • 21
  • Did you uninstall the `unity` package? Someone else in a [recently-closed question](http://askubuntu.com/questions/71090/unity-2d-double-titlebar-for-maximized-windows) had a similar problem caused by that. – Knowledge Cube Oct 24 '11 at 02:28
  • 1
    Remarkably - I think this has just been answered... http://askubuntu.com/questions/71369/compiz-issues-in-unity-2d – fossfreedom Oct 24 '11 at 16:17

4 Answers4

8

To solve the window decorator issue, simply run the following in the terminal or Alt+F2 and the window decoration will immediately disappear:

gconftool-2 -s -t string '/apps/compiz-1/plugins/decor/screen0/options/decoration_match' '!state=maxvert'

Or just as @joschi's answer suggest, you can do that graphically using the CCSM:

enter image description here

Oxwivi
  • 17,589
  • 53
  • 136
  • 197
5

I have set myself the 'decorations for windows' box to !(state=maxvert & state=maxhorz) because I do want the decorations when the window is only vertically/horizontally maximized (by clicking the maximize button with the middle/right button, respectively), and I do not want them if it is fully maximized.

  • *Excellent*! No one seems to be mentioning `state=maxhorz`, but that is important, especially if you want to use the Window Grid plugin. I tried `maxhori` and `maxhoriz` and neither worked; should have figured this out. Took some searching. +1 upvote this answer people. – Kazark Jul 07 '12 at 16:32
2

You can try to change the settings in the 'Window decorations' option in CCSM. Type !state=maxvert in the 'decorations for windows' box which should remove the decorations of all maximized windows.

joschi
  • 1,744
  • 3
  • 18
  • 31
0

You can also change settings only for specific application say firefox

!(class=Firefox & state=maxvert & state=maxhorz)

Source

shishir
  • 1
  • 2