I got it to work with compton compositing manager. thank you Antonio and Germán.

this command worked for me:
compton --detect-client-opacity

> Hi,
> 
> This is from the GTK documentation (used in IUP for the opacity attribute):
> 
> "gtk_widget_set_opacity ()
> 
> void gtk_widget_set_opacity (GtkWidget *widget, double opacity);
> 
> Request the widget to be rendered partially transparent, with opacity 0 being 
> fully transparent and 1 fully opaque. (Opacity values are clamped to the 
> [0,1] range.). This works on both toplevel widget, and child widgets, 
> although there are some limitations:
> 
> For toplevel widgets this depends on the capabilities of the windowing 
> system. On X11 this has any effect only on X screens with a compositing 
> manager running. See gtk_widget_is_composited(). On Windows it should work 
> always, although setting a window’s opacity after the window has been shown 
> causes it to flicker once on Windows.
> 
> For child widgets it doesn’t work if any affected widget has a native window, 
> or disables double buffering."
> 
> Best,
> 
> Scuri
> 
> Em 01/07/2016 04:09, "anon anon" <[email protected]> escreveu:
> 
>> i never would have figured a compositing manager had anything to do with it 
>> because i didnt know what a compositing manager was! i installed and tried 
>> xcompmgr and it looks promising because it makes all the windows fade in and 
>> out. it didnt work but i think i will try a better compositing manager 
>> tomorrow.
>>
>>> OK, it works in Xfce if I enable the compositing manager. So, try it in
>>
>>> your LXDE desktop.
>>
>>>
>>
>>> Germán.
>>
>>>
>>
>>> El vie, 01-07-2016 a las 05:48 +0300, anon anon escribió:
>>
>>>
>>
>>>> thanks a lot. something in gnome must be needed for that attribute. i dont 
>>>> even have it installed on my computer. fyi im using LXDE and i tried 
>>>> openbox but neither one works with opacity by default.
>>
>>>>
>>
>>>>> Maybe a problem with your window manager or session. A simple test don't
>>
>>>>> works for me on Xfce, but works perfectly on Gnome3. But if I first
>>
>>>>> start session on Gnome3, and then in Xfce, it works!. Seems like if Xfce
>>
>>>>> don't starts some service needed to handle transparency.
>>
>>>>>
>>
>>>>> Germán
>>
>>>>>
>>
>>>>> El vie, 01-07-2016 a las 02:03 +0300, anon anon escribió:
>>
>>>>>
>>
>>>>>> good it must be isolated on my computer. opacity is the only attribute 
>>>>>> on my computer i've noticed that has no effect. what do you all think 
>>>>>> could be wrong? i dont know but my guesses are:
>>
>>>>>> -i didnt compile iup correctly (maybe missing a dependency?)
>>
>>>>>> -libraries for opacity not getting loaded in linker. i compiled with: cc 
>>>>>> -o out in.c "$IUPLIBFOLDER/libiup.a" $(pkg-config --libs gtk+-2.0 
>>>>>> gdk-2.0)
>>
>>>>>> -maybe a random bug in the version of gtk i have
>>
>>>>>> thanks for clearing up the C question.
>>
>>>>>>
>>
>>>>>>> Hi,
>>
>>>>>>>
>>
>>>>>>> I just tested in GTK 2.20 and it worked ok with
>>
>>>>>>>
>>
>>>>>>> IupSetAttribute(dialog,"OPACITY","128");
>>
>>>>>>>
>>
>>>>>>> Notice that a value of "1" is almost fully transparent.
>>
>>>>>>>
>>
>>>>>>> The new C++ api will be a complement, not a replacement.
>>
>>>>>>>
>>
>>>>>>> Best,
>>
>>>>>>> Scuri
>>
>>>>>>>
>>
>>>>>>> On Thu, Jun 30, 2016 at 1:00 AM, anon anon <[email protected]> wrote:
>>
>>>>>>>
>>
>>>>>>>> using linux with gtk version greater than 2.12. compiles fine but 
>>>>>>>> opacity does not work. i didnt see anything about it on to do list 
>>>>>>>> etc. so im asking here. i didnt try to reproduce it on a different 
>>>>>>>> machine. anyone else have this problem? question not related: is iup 
>>>>>>>> 4.x going to support C?
>>
>>>>>>>>
>>
>>>>>>>> my C code:
>>
>>>>>>>>
>>
>>>>>>>> IupSetAttribute(dialog,"OPACITY","1");
>>
>>>>>>>>
>>
>>>>>>>> ------------------------------------------------------------------------------
>>
>>>>>>>>
>>
>>>>>>>> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
>>
>>>>>>>>
>>
>>>>>>>> Francisco, CA to explore cutting-edge tech and listen to tech 
>>>>>>>> luminaries
>>
>>>>>>>>
>>
>>>>>>>> present their vision of the future. This family event has something for
>>
>>>>>>>>
>>
>>>>>>>> everyone, including kids. Get more information and register today.
>>
>>>>>>>>
>>
>>>>>>>> http://sdm.link/attshape
>>
>>>>>>>>
>>
>>>>>>>> _______________________________________________
>>
>>>>>>>>
>>
>>>>>>>> Iup-users mailing list
>>
>>>>>>>>
>>
>>>>>>>> [email protected]
>>
>>>>>>>>
>>
>>>>>>>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>
>>>>>>
>>
>>>>>> ------------------------------------------------------------------------------
>>
>>>>>> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
>>
>>>>>> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
>>
>>>>>> present their vision of the future. This family event has something for
>>
>>>>>> everyone, including kids. Get more information and register today.
>>
>>>>>> http://sdm.link/attshape
>>
>>>>>> _______________________________________________
>>
>>>>>> Iup-users mailing list
>>
>>>>>> [email protected]
>>
>>>>>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>
>>>>>
>>
>>>>> ------------------------------------------------------------------------------
>>
>>>>> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
>>
>>>>> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
>>
>>>>> present their vision of the future. This family event has something for
>>
>>>>> everyone, including kids. Get more information and register today.
>>
>>>>> http://sdm.link/attshape
>>
>>>>> _______________________________________________
>>
>>>>> Iup-users mailing list
>>
>>>>> [email protected]
>>
>>>>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>
>>>>
>>
>>>> ------------------------------------------------------------------------------
>>
>>>> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
>>
>>>> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
>>
>>>> present their vision of the future. This family event has something for
>>
>>>> everyone, including kids. Get more information and register today.
>>
>>>> http://sdm.link/attshape
>>
>>>> _______________________________________________
>>
>>>> Iup-users mailing list
>>
>>>> [email protected]
>>
>>>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>
>>>
>>
>>> ------------------------------------------------------------------------------
>>
>>> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
>>
>>> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
>>
>>> present their vision of the future. This family event has something for
>>
>>> everyone, including kids. Get more information and register today.
>>
>>> http://sdm.link/attshape
>>
>>> _______________________________________________
>>
>>> Iup-users mailing list
>>
>>> [email protected]
>>
>>> https://lists.sourceforge.net/lists/listinfo/iup-users
>>
>> ------------------------------------------------------------------------------
>>
>> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
>>
>> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
>>
>> present their vision of the future. This family event has something for
>>
>> everyone, including kids. Get more information and register today.
>>
>> http://sdm.link/attshape
>>
>> _______________________________________________
>>
>> Iup-users mailing list
>>
>> [email protected]
>>
>> https://lists.sourceforge.net/lists/listinfo/iup-users

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Iup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to