Hello,

On Thu, Sep 14, 2006 at 11:34:00AM -0400, Sean Russell wrote:
> You can force the pop-up to your current view with this bit of code:
>       
>       POPUPS="Ekiga|kopete"
> 
>       wmiir read /event 2>/dev/null |
>       while read event
>       do
>           set -f
>           set -- $event
>           set +f
>           type="$1"; shift
>           parms="$@"
>           case "$type" in
>           CreateClient)
>               target_view=`wmiir read /ctl | awk '/^view/ {print $2}'`
>               if [[ `wmiir read /client/${params}/props | egrep -q 
> "${POPUPS}"` == 0 ]]
>               then
>                       echo -n $target_view | wmiir write /client/${parms}/tags
>               fi              
>               ;;
>           esac
>       done
> 
> Just stick the CreateClient) ... ;; block in your wmiirc, and define the 
> POPUPS
> variable at the top.
> 
> Note: this code has not been tested; you may have to tweak it.

Thanks you all for your suggestions, first.

But I'm still struggling with it:
First issue: Ekiga tries to be smart and sets the popup's title to
reflect the caller's identity. Hence, a varying label that helps...
I thought at first I would unconditionally tag every new window with the
current view's tag. Annoying, but at least a temporary workaround for
the calls I miss :)

*THOUGH* a second issue raised: when the popup gets created, I see no
"CreateClient" event. I added a "catch-all" clause to watch other
events, and all I get is a "ClientFocus <number>":
<snip>
        *)
                echo "EVENT: $event" >> $LOGFILE;;
        esac
done &
</snip>

How come that event isn't seen by wmii ? Or is it filtered out and not
reported through /event ?

Francis

Attachment: signature.asc
Description: Digital signature

_______________________________________________
[email protected] mailing list
http://wmii.de/cgi-bin/mailman/listinfo/wmii

Reply via email to