Hi All,

I found the following issue with Fvwm (2.5.23, and from CVS). When I
change a focused windows mini icon using "WindowStyle MiniIcon", the
window receives a focus out immediately followed by a focus in event.

Here's how you can test / reproduce it:

    1. Run "xev", and find it's window ID (call it xevWinId for now)

    2. Open another terminal and run from shell

            $ FvwmCommand 'windowid xevWinId windowstyle miniicon vim.png'

       The xev output shows it received a few configure notify / expose
       events. All fine so far.

    3. From your shell, run

            $ FvwmCommand 'windowid xevWinId DestroyWindowStyle';
            $ FvwmCommand 'windowid xevWinId WindowListFunc'; sleep 5; 
FvwmCommand 'windowid xevWinId windowstyle miniicon vim.png'

       Now the xev output shows the following: First it gets a FocusIn
       event (and some configure/expose events). Then it waits for 5
       seconds. When the miniicon change is requested, it receives a
       FocusOut, immediately followed by a FocusIn event.

       This doesn't happen on other window managers!

The reason this affects me is because I use mrxvt for my terminal
emulator with off focus fading enabled. I have set up my shell to sync
the terminal title to the last command executed, and have set up Fvwm to
set the mini icon of my terminal windows based on the window title (e.g.
when I run Vim, I get a Vim icon, and when I quit and run mutt, the
terminal icon changes to the mutt icon).

Unfortunately as things are now, when I quit vim and run mutt, mrxvt
receives the focus out event, and dims the current colors. Shortly after it
receives a focus in event and lightens the current colors again. This
flicker is quite disturbing...

If there's some way to avoid this, I'd be very grateful...

Thanks,

GI

-- 
Twenty Ways To Maintain A Healthy Level of Insanity
3. Every time someone asks you to do something, ask if they want fries
with that.

Reply via email to