> Can someone help me with this problem?

XFCE starts the `xfwm4' window-manager.
You can switch manually after the fact by doing:

    killall xfwm4; ctwm&

from an xterm (you may have to do it a couple times, since there's
a race condition between ctwm and the session manager which tries to
immediately restart a new xfwm4).

Or you can arrange to have a script called ~/bin/xfwm4 which runs ctwm
(so as to trick XFCE into starting ctwm when it thinks it's starting
xfwm4), such as the one below.


        Stefan


#!/bin/sh
#
# Fake xfwm4 that really calls ctwm.
# 
# xfce4-session has $HOME/bin early in its path, so placing this script
# there will override the real xfwm4.

# Typically called by xfce4-session as
# xfwm4 --replace --display :0.0 --sm-client-id 
3e89db529-4b10-4dd5-bbce-b7ce86be2722

#exec >>~/tmp/xfwm4.log 2>&1
#set -x

display="${DISPLAY:-:0}"

while [ $# -gt 0 ]
do
    case "$1" in
        --display)
            display="$2"
            shift 2
            ;;
        --sm-client-id)
            shift 2
            ;;
        *)
            shift
            ;;
    esac
done

exec ~/bin/ctwm -display "$display" -W

Reply via email to