Re: CCSM and Window Decorator



Nikos Chantziaras wrote:

Chris wrote:
Chris wrote:

Nikos Chantziaras wrote:

Chris wrote:
For some reason the Command field in Window Decorations (in CCSM) keep
getting changed each time I logout.

I need to have the "--opacity 1.0" specified with the
kde-window-decoration command. Otherwise, the unfocused windows have
their frames invisible and corrupted. When I add the opacity switch
and restart the window manager via fusion icon, everything works fine.

So, anyone know what is making changes to my compiz config when I
logout?
Try adding "ccp" (without quotes) to the compiz command line.
Where is the compiz command line? I think I know what you mean, because
I used to execute compiz manually. However, I am using the fusion-icon
so it's kind of automatic now.

Perhaps its the fusion-icon that is giving me headaches. Here is what the
fusion-icon spit into .xsession-errors when I quit the fusion-icon:

Detected Session: kde
* Searching for installed applications...
* NVIDIA on Xorg detected, exporting: __GL_YIELD=NOTHING
* Using the GTK Interface
* Decorator "kde-window-decorator --opacity 1.0 --replace" is invalid.
* Setting decorator to KDE Window Decorator
("kde-window-decorator --replace")

Looks like they don't properly parse that field.

I remember having problems with fusion-icon too. I solved this by
creating a new "Compiz Fusion" session for KDM (that way, "Compiz
Fusion" shows up as a choice when you login). Not sure if this applies
to openSUSE 11, but here the session files are in the
/usr/share/xsessions/ directory. Create a file there called
"compiz.desktop" that contains the following:

[Desktop Entry]
Encoding=UTF-8
Type=XSession
Name=Compiz Fusion
Exec=/usr/local/bin/compiz.session
Icon=
Type=Application

Then create a file "/usr/local/bin/compiz.session" that contains:

#! /bin/sh
export LIBGL_ALWAYS_INDIRECT=1
export KDEWM=/usr/local/bin/compiz.wrapper
exec startkde

and make it executable (chmod +x /usr/local/bin/compiz.session). Omit
the "export LIBGL_ALWAYS_INDIRECT=1" if you're using Xgl instead of
AIGLX. Next, create the file "/usr/local/bin/compiz.wrapper" with the
following contents:

#! /bin/sh
exec /usr/bin/compiz --sm-disable --ignore-desktop-hints ccp
--indirect-rendering

(The "--indirect-rendering" goes on the same line, my newsreader just
wraps it.) Make it executable (chmod +x /usr/local/bin/compiz.wrapper).
Again, omit "--indirect-rendering" if you're on Xgl and not on AIGLX.
Adapt the rest of the command line as needed.

As you see, there's no "--replace" option since that way you're telling
KDE to use compiz as window manager instead of using kwin first then
replacing it with compiz.

Now when you logout, you will see "Compiz Fusion" as a new choice in the
"Session" menu of KDM. Select that and you're good to go :) No
fusion-icon is needed.

Thank you! That worked perfectly. I always wondered if there was a way to
get KDE to start compiz instead of starting kwin then compiz. It seems like
I log in much faster now.

--
Chris
.



Relevant Pages

  • Re: CCSM and Window Decorator
    ... anyone know what is making changes to my compiz config when I ... Try adding "ccp" to the compiz command line. ... Setting decorator to KDE Window Decorator ... creating a new "Compiz Fusion" session for KDM. ...
    (alt.os.linux.suse)
  • Re: Window Borders Disappear
    ... Problem occurred after an abortedattempt to install Compiz.. ... Cannot start the preferences application for your window ... Why don't you try aptitude reinstall metacity? ...
    (Debian-User)
  • F9: Desktop Effect and Compiz: How to manually disable it?
    ... I have enabled 'Desktop Effects' (Compiz) and tried it out ... changes after closing the cscm dialog window. ... is there a command-line command or can ...
    (Fedora)
  • Re: F9: Desktop Effect and Compiz: How to manually disable it? [SOLVED (sort of)]
    ... Next, I used the Compiz Configuration Tool, added ... changes after closing the cscm dialog window. ... is there a command-line command or can ... I manually disable Desktop-Effects for that user ...
    (Fedora)
  • Have you seen beryl window manager? Kinda awesome!
    ... community project/program Beryl, So I installed it from the RPM ... Beryl is growing out of Compiz and it is the ... If you are pissed off about Metacity ... Beryl also provides a GUI way to change the selected window manager. ...
    (Fedora)