-----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'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.

An event relying on focus would solve both problem, but as I said, I
didn't found any when looking to the code, and I could not figure how to
add one. Any hint ?

Thanks for your help :)

- --
Clement Hermann (nodens)
- - "L'air pur ? c'est pas en RL, ça ? c'est pas hors charte ?"
Jean in L'Histoire des Pingouins, http://tnemeth.free.fr/fmbl/linuxsf/

Vous trouverez ma clef publique sur le serveur public pgp.mit.edu.
Please find my public key on the public keyserver pgp.mit.edu.

PS : sorry if this message is duplicated. I had some problem subscribing
to the ML.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC+OxU0yQ2guvROZ0RAmPvAJsEMegXMvQ6BbXm8lmQr+VoVh0bzACePWGW
iZe7n1QPOLBTCq7hhCtc2Vw=
=Uhrr
-----END PGP SIGNATURE-----



-------------------------------------------------------
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