Discussion:
FVWM: style command ignored
Pierre Frenkiel
2011-02-02 14:44:45 UTC
Permalink
hi,
I have in my fvwm config several "style" lines like this one:

Style "program" NoTitle, NoHandles, Sticky, WindowListSkip, NeverFocus

and up to now, they all worked perfectly.
A fex days ago, I added the clock program "buici-clock", and the style
for this program is ignored (not sticky, title present, ...)
I imagined that the dash in the name could be the cause, but the problem
remains if I remove the dash (changing accordingly the program name of course)
Has anybody an explanation?

version : fvwm 2.5.30
running on debian Squeeze

regards,
--
Pierre Frenkiel
Thomas Adam
2011-02-02 14:51:37 UTC
Permalink
Post by Pierre Frenkiel
hi,
Style "program" NoTitle, NoHandles, Sticky, WindowListSkip, NeverFocus
Style BuiciClock !Title, !Handles, Sticky, WindowListSkip, Neverfocus

This matches on the class name.
Post by Pierre Frenkiel
and up to now, they all worked perfectly.
A fex days ago, I added the clock program "buici-clock", and the style
for this program is ignored (not sticky, title present, ...)
Likely the ordering of your style lines is meaning this is being overriden.

I'd need to see your config.

-- Thomas Adam
Pierre Frenkiel
2011-02-03 13:52:10 UTC
Permalink
Post by Thomas Adam
Style BuiciClock !Title, !Handles, Sticky, WindowListSkip, Neverfocus
This matches on the class name.
thanks Thomas,
it works with the class name. But where did you find it?
In the man, they say:

"Because this program doesn't use a toolkit, it recognizes only the
resources specified here.
showSecondHand"
Post by Thomas Adam
Likely the ordering of your style lines is meaning this is being overriden.
I thought that, but I remove ALL style lines but ths buici one, the
clock is sticky, but still has it's title.

thank for your help

regards,
--
Pierre Frenkiel
Thomas Adam
2011-02-03 13:57:03 UTC
Permalink
Post by Pierre Frenkiel
Post by Thomas Adam
Style BuiciClock !Title, !Handles, Sticky, WindowListSkip, Neverfocus
This matches on the class name.
thanks Thomas,
it works with the class name. But where did you find it?
Using any one of:

FvwmIdent, xwininfo, xprop
Post by Pierre Frenkiel
"Because this program doesn't use a toolkit, it recognizes only the
resources specified here.
showSecondHand"
Sure -- that's more for setting resources. Every application should set
WM_CLASS -- and in the rare cases where they break the ICCCM for it, FVWM
sets it internally to NoClass. But none of this is anything to do with what
you quoted above. :)
Post by Pierre Frenkiel
Post by Thomas Adam
Likely the ordering of your style lines is meaning this is being overriden.
I thought that, but I remove ALL style lines but ths buici one, the
clock is sticky, but still has it's title.
Then you must have other style lines still in use. Note that even starting
FVWM like this:

fvwm -f /dev/null

and issuing the style line I mention above, does the right thing. What
version of FVWM are you using?

-- Thomas Adam
Pierre Frenkiel
2011-02-03 16:34:03 UTC
Permalink
Post by Thomas Adam
FvwmIdent, xwininfo, xprop
it's a shame: Using X11 since so many years, I didn't know these very
useful commands.
Post by Thomas Adam
Post by Pierre Frenkiel
I thought that, but I remove ALL style lines but ths buici one, the
clock is sticky, but still has it's title.
Then you must have other style lines still in use.
That's not possible, with any editor... Anyway, I was not clear enough:
when I said "the buici one", I meant the one I used before, with "buici-clock"
As I said, your line works perfectly.
--
Pierre Frenkiel
Loading...