Post by Dominik VogtPost by Walter Alejandro IglesiasPost by Dominik VogtIt doesn't work because you forget to destroy the window specific
style. A style specified with the WindowStyle command is always
preferred over styles specified with the Style command.
I wake up this morning thinking exactly on that. I'd replaced Thumbnail
with Iconify in the ShowDesktop function (to speed it up) and forgot
about FvwmEvent in DeThumbnail. I had it in front of my nose!
Sorry guys, I'm getting old and idiot.
No, the icon syntax is simply a pain. It took me half a day to
figure out what's going wrong. Icon choices are simply
unintuitive and hard to understand.
Post by Walter Alejandro IglesiasPost by Dominik VogtYou need
+ I DestroyWindowStyle
I've added this to DeThumbnail and all works perfectly. Thanks Dominik.
Youre welcome. :-) I'm glad that it works now. I had a tough
fight with your configuration because I use FvwmCpp to process my
config file, and then I have to replace *some* line continuations
('\') with "\\", but not all (the ones inside duoble quotes can be
left unchanged).
And I also noticed that if I define a MiniIcon style for the
window and run the scripts too, the mini icon is displayed on top
of the real icon. I wonder if that's a bug or if it's a secret
feature that I could not find in the documentation yet.
The function I've posted? Well the aim is to get something similar to
what MacOSX does. Let me explain the whole history. I borrowed the
idea from here:
http://zensites.net/fvwm/guide/advanced_functions.html
And combined it with what I've read in the fvwm.org FAQ:
http://www.fvwm.org/documentation/faq/#toc_7.18
Note that Thomas put two versions in the FAQ, the first using
DestrowWindowStyle and the second using SetEnv.
I got the thing working (the function I've pasted in my second message),
I simplified a bit the pipe commands (used just import) and instead of
icons like the guy of the first site did I used mini icons at the top of
the thumbnail. The result I got was:
Loading Image...The problem came because, time ago I'd borrowed from some place (I don't
remember from where) a ShowDesktop function, I modified it a bit too:
DestroyFunc ShowDesktop
AddToFunc ShowDesktop
+ I SendToModule FvwmAnimate pause
+ I All (AcceptsFocus, CurrentPage, Iconic, State 1) RestoreDesktop
+ I TestRc (Match) Break
+ I All (AcceptsFocus, CurrentPage, !Iconic, !State 1) ThisWindow State 1 True
+ I All (AcceptsFocus, CurrentPage, !Iconic, State 1) Thumbnail
^^^^^^^^^
(replaced with Iconify)
+ I SendToModule FvwmAnimate play
DestroyFunc RestoreDesktop
AddToFunc RestoreDesktop
+ I SendToModule FvwmAnimate pause
+ I All (AcceptsFocus, CurrentPage, Iconic, State 1, !Focused) Iconify
+ I All (AcceptsFocus, CurrentPage, Iconic, State 1) Iconify
+ I All (AcceptsFocus, CurrentPage, State 1) ThisWindow State 1 False
+ I SendToModule FvwmAnimate play
Thumbnail was too slow for this function, the idea is ShowDesktop to be
instantaneous. Hence I put here "Iconify". I forgot DeThumbnail
function :-), FvwmEvent reseted the icon each time the application was
de-iconified that's why the icon setted in styles worked just the first
time and the IconOverride was ignored.
Post by Dominik VogtCiao
Dominik ^_^ ^_^
--
Dominik Vogt