Two State Lanuncher for Compositor
Bob Snyder
bob.snyder at cox.net
Sun Apr 24 21:45:02 CEST 2005
Hi Olivier,
I tried this and had no luck.
For example, with mplayer using the 'xv' video output driver, I get a
normal image, but if I try to move or resize the window, it goes black
or shows the some random piece of the desktop in the window. Running
xfwm4 without the compositor gives proper operation. Setting
XLIB_SKIP_ARGB_VISUALS=1 had no effect.
The script (minus the else case) does at least allow me to use the app.
Bob S.
Olivier Fourdan wrote:
>Hi
>
>That's pretty much useless IMO. Better use the env var
>XLIB_SKIP_ARGB_VISUALS.
>
>Just set a wrapper script to set that var prior to run the app that
>doesn't support ARGB visuals, or even use an alias.
>
>e.g with bash:
>
>alias nedit='XLIB_SKIP_ARGB_VISUALS=1 nedit'
>
>HTH
>Olivier.
>
>
>
>On Sat, 2005-04-23 at 10:36 -0700, Bob Snyder wrote:
>
>
>>I like to use the compositor feature of xfwm4, but some apps don't work
>>well with it. I'd like to be able to turn it on and off easily, and I've
>>been trying to get the trigger launcher (aka two-state launcher) to do it.
>>
>>The trigger launcher calls a user written script to do the actual work.
>>The script needs to work with three different inputs: '1' to turn the
>>app on, '0' to turn the app off, and no argument to make the script
>>return the current state to stdout.
>>
>>So I've got this:
>>
>>#!/bin/sh
>>
>>if [ "$1" = "1" ] ; then
>> killall xfwm4 ; exec xfwm4 --compositor=on
>>elif [ "$1" = "0" ] ; then
>> killall xfwm4 ; exec xfwm4 --compositor=off
>>else
>> ?????
>> case $? in
>> 0) echo 1 ;;
>> 1) echo 0 ;;
>> esac
>>fi
>>
>>Is there any way to query the compositor to tell if it's running?
>>Perhaps there's a better way to go about the whole thing.
>>
>>Suggestions appreciated.
>>
>>Bob S.
>>
>>
>>_______________________________________________
>>Xfce mailing list
>>Xfce at xfce.org
>>http://foo-projects.org/mailman/listinfo/xfce
>>http://www.xfce.org
>>
>>
>>
>
>
>_______________________________________________
>Xfce mailing list
>Xfce at xfce.org
>http://foo-projects.org/mailman/listinfo/xfce
>http://www.xfce.org
>
>
>
--
Get Thunderbird <http://www.mozilla.org/products/thunderbird/>
More information about the Xfce
mailing list