FVWM: Problem with swallowing application (window not correctly captured)

2011-03-22 Thread Michelle Konzack
Hello,

I have more then one soundcard installed and use "wmmixer"  to  set  the
values.

We have allied a patch to support multiple  config  files  and  today  I
coded a second patch, which let me modify the "Class" of the  Window.

OK, "wmmixer" show normaly:

Name:   wmmixer
Icon Name:  wmmixer
Class:  WMMixer
Resource:   wmmixer

and now I can use:

[ '~/.fvwm/PROF_default/FvwmButtonsRight.real' ]

(2x2,   \
 Frame   0, \
 Padding 3 3,   \
 Title   "VIA", \
 Swallow "WMMixer-VIA" "Exec exec wmmixer -w --mix-device /dev/mixer --config 
~/.wmmixer_via --x-class WMMixer-VIA" \
)
(2x2,   \
 Frame   0, \
 Padding 3 3,   \
 Title   "SB1", \
 Swallow "WMMixer-SB1" "Exec exec wmmixer -w --mix-device /dev/mixer1 --config 
~/.wmmixer_sb --x-class WMMixer-SB1" \
)
(2x2,   \
 Frame   0, \
 Padding 3 3,   \
 Title   "SB2", \
 Swallow "WMMixer-SB2" "Exec exec wmmixer -w --mix-device /dev/mixer2 --config 
~/.wmmixer_sb --x-class WMMixer-SB2" \
)


and now "wmmixer" show me

Name:   wmmixer
Icon Name:  wmmixer
Class:  WMMixer-VIA
Resource:   wmmixer
and
Name:   wmmixer
Icon Name:  wmmixer
Class:  WMMixer-SB1
Resource:   wmmixer
and
Name:   wmmixer
Icon Name:  wmmixer
Class:  WMMixer-SB2
Resource:   wmmixer

However, Fvwm does not care about the

Swallow "WMMixer-..."

setting.  Can someone tell me WHY?

[ manpage 'FvwmButtons' ]---
  Swallow [(flags)] hangon command
 Causes FvwmButtons to execute command, and when a  window
 with  a  name, class or resource matching hangon appears,
 it is captured  and  swallowed  into  this  button.   The
 hangon  string may contain wildcard characters (’*’) that
 match any substring.  Swallow replaces the variables  $fg
 and  $bg as described above for the Action option (but if
 you use the UseOld and NoClose options the application is
 not  be  restarted when FvwmButtons is restarted and thus
 does not get the new colors - if you changed  them).   An
 example:

   *FvwmButtons: (Swallow XClock ’Exec xclock -geometry 
-3000-3000 &’)

 takes  the first window whose name, class, or resource is
 "XClock" and displays it in the button.  If  no  matching
 window  is  found,  the  "Exec" command creates one.  The
 argument "-geometry -3000-3000" is used so that the  win‐
 dow is first drawn out of sight before its swallowed into
 FvwmButtons.

 Modules can be swallowed by specifying the module instead
 of ’Exec whatever’, like:

   *FvwmButtons: (Swallow "FvwmPager" "FvwmPager 0 0")



So according to the manpage WHICH USE the "Class" I do  not  understand,
WHY it does not work with wmmixer.

Any hints?

Thanks, Greetings and nice Day/Evening
Michelle Konzack

-- 
# Debian GNU/Linux Consultant ##
   Development of Intranet and Embedded Systems with Debian GNU/Linux

itsystems@tdnet France EURL   itsystems@tdnet UG (limited liability)
Owner Michelle KonzackOwner Michelle Konzack

Apt. 917 (homeoffice)
50, rue de Soultz Kinzigstraße 17
67100 Strasbourg/France   77694 Kehl/Germany
Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix

  
 

Jabber linux4miche...@jabber.ccc.de

Linux-User #280138 with the Linux Counter, http://counter.li.org/


signature.pgp
Description: Digital signature


Re: FVWM: Problem with swallowing application (window not correctly captured)

2011-03-22 Thread Thomas Adam
On Tue, Mar 22, 2011 at 10:08:01PM +0100, Michelle Konzack wrote:

> So according to the manpage WHICH USE the "Class" I do  not  understand,
> WHY it does not work with wmmixer.

But of course it does.

You have a few things to consider here:

* Your patch is bogus -- in that the setting of WM_CLASS might happen
 post-mapping -- when the window leaves the Withdrawn state.  I've seen this
 with some programs.  Note that you can determine this with:

 BugOpts DisplayNewWindowNames

 What does FVWM tell you about the class when you start up this patched
 program of yours?

* That this patch program is already running -- see the options to Swallow
  for "UseOld", etc.

-- Thomas Adam

-- 
"Deep in my heart I wish I was wrong.  But deep in my heart I know I am
not." -- Morrissey ("Girl Least Likely To" -- off of Viva Hate.)



FVWM: [SOLVED] Problem with swallowing application (window not correctly captured)

2011-03-22 Thread Michelle Konzack
Hello Thomas Adam,

sorry that I have bothered you. I had a config error. Now it is working!

It has loaded the wrong Button config which had the old hangon "wmmixer"
inside.

Thanks, Greetings and nice Day/Evening
Michelle Konzack

-- 
# Debian GNU/Linux Consultant ##
   Development of Intranet and Embedded Systems with Debian GNU/Linux

itsystems@tdnet France EURL   itsystems@tdnet UG (limited liability)
Owner Michelle KonzackOwner Michelle Konzack

Apt. 917 (homeoffice)
50, rue de Soultz Kinzigstraße 17
67100 Strasbourg/France   77694 Kehl/Germany
Tel: +33-6-61925193 mobil Tel: +49-177-9351947 mobil
Tel: +33-9-52705884 fix

  
 

Jabber linux4miche...@jabber.ccc.de
ICQ#328449886

Linux-User #280138 with the Linux Counter, http://counter.li.org/


signature.pgp
Description: Digital signature