Clement Hermann (nodens) wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I'm currently playing with e16.8 with composite.

What I'm trying to do, is having a certain class of windows (say, the
one with a specific border) to switch opacity when they get or lose focus.

I didn't found any focus related event, so I used __MOUSE_ENTER and
__MOUSE_LEAVE, that way (in my borders/AUTOTRANS/borders.cfg)

#define __A_SET_TRANS_70    wop * opacity 179
#define __A_SET_TRANS_85    wop * opacity 217

 __ACLASS __BGN
    __NAME ACTION_AUTOTRANS
    __TYPE __TYPE_NORMAL
    __EVENT __MOUSE_ENTER
    __ACTION __A_SET_TRANS_90
    __NEXT_ACTION
    __EVENT __MOUSE_LEAVE
    __ACTION __A_SET_TRANS_70
 __END

__BORDER __BGN  __BORDER_SIZE_LEFT 4
  __BORDER_SIZE_RIGHT 4
  __BORDER_SIZE_TOP 20
  __BORDER_SIZE_BOTTOM 4
  __SHADE_DIRECTION __UP
  __CHANGES_SHAPE __OFF
  __ACLASS ACTION_AUTOTRANS

...

It mostly works, looks great when running with xcompmgr -F -D 5 so you
have a short fading effect.

My problem is, I would like to rely on focus, not on pointer and border,
as you may leave a windows without crossing its border (if another
windows is on top of your previously focused windows, for instance), and
you won't benefit of this little trick.

I have added focus in/out action handling (__FOCUS_IN, __FOCUS_OUT), so
this should now be possible.

I'd also like to set a particular opacity on windows creation, so you
don't have to pass the pointer on it to make it tranlucent. I tried to
do this with windowmatches.cfg, but I could not figure how to do it.

This can be done via bindings.cfg (taking over from windowmatches.cfg in
e16.8), e.g. by adding a line like
Class * Winop opacity 220

/Kim


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to