Re: FVWM: Style ... SkipMapping

Dr Rainer Woitok <[email protected]>
Newsgroups gmane.comp.window-managers.fvwm
Message-ID <[email protected]>
Greetings,

On Tuesday, 2019-11-19 00:43:08 +0000, Hegel3DReloaded wrote:

> ...
> Your problem appeared trivial to me, but I have tried this in a test
> environment and found VERY interesting behaviour:

FINALLY!  It started to feel like fighting windmills ... thankyou :-)

>                                                   Firefox is desparately
> trying to get in focus and under the mouse when started. It goes to the
> desk and page we told it, SkipMapping works, but window program is jumping
> back to you like a stray dog for a peace of meat. It is fast, so you cannot
> see it without serious throttling of the CPU and GPU. I have tried couple other
> applications, but none of them exercises this behaviour. Tried even with
> InitialMapCommand style - with that, we have more freedom for experimenting.
> ...
> This works as a workaround:
> Style Firefox InitialMapCommand Schedule 500 MoveToPage 1 1

Not here,  assuming the phrase "work" refers to Fvwm at least eventually
moving back to the desktop page  where my terminal window is waiting for
input.

> This:
> Style Firefox StartsOnPage 0 1 1, SkipMapping, InitialMapCommand Schedule 500 MoveToPage 1 1
> 
> will produce the following funny scenario:
> 
> - Firefox appears on X server
> - Immediately mapped by FVWM on page 1 1
> - It gets back to you like a dog
> - ~ 0.5 seconds later, FVWM will kick it back where it belongs. :)

Again, not here.   Whatever I do  I always end up perpetually staring at
Firefox sitting in the desktop page I have assigned to it.

Since this apparently  being a  Firefox rather than  an Fvwm problem,  I
solved it now by removing the useless  "FvwmCommand 'Style Firefox Skip-
Mapping'" before the "nohup firefox" command and adding

   sleep 3
   FvwmCommand 'GotoDeskAndPage prev'

after the "nohup firefox" command.  This may well be regarded as an ugly
hack, bu at least it works, even though it takes 3 seconds.

Sincerely,
  Rainer
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.