[Solved] Re: Balsa 2.4.8 auto-raise and auto-focus
- From: "Mark A. Flacy" <mflacy verizon net>
- To: balsa-list gnome org
- Subject: [Solved] Re: Balsa 2.4.8 auto-raise and auto-focus
- Date: Fri, 03 Dec 2010 11:29:05 -0600
On 12/03/2010 07:11:08 AM, peterbloomfield wrote:
--- On Fri, 12/3/10, Paweł Sałek <pawsa0 gmail com> wrote:
> From: Paweł Sałek <pawsa0 gmail com>
> Subject: Re: Balsa 2.4.8 auto-raise and auto-focus
> To: balsa-list gnome org
> Date: Friday, December 3, 2010, 1:37 AM
> On 12/02/2010 04:55:05 PM, Mark A.
> Flacy wrote:
> > Greetings,
> > This is driving me insane. Every time a new
> e-mail comes in, balsa de-iconifies and grabs the mouse
> focus which interrupts what I am doing.
> > I'm running FVWM2 as my window manager on top of Gnome
> and I cannot find any configuration in FVWM2 that would be
> causing this. I've turned off all inbound message
> alert options that I can find in balsa. I'm ready to
> dump balsa if I cannot find a fix (I got interrupted while
> typing this message, for crying out loud.).
> Do you use your own balsa build? Balsa does not do it on
> its own, that is certain. I wonder however whether this is
> caused by eg. libnotify library...
Balsa uses gtk_window_set_urgency_hint() to alert the user to new
mail, and I'm guessing that FVWM2 implements that in the way that
Mark describes. The gtk docs are silent about implementation;
metacity makes the Balsa button in the bottom panel a pulsing blue
color and puts it on the current workspace, which gets your attention
but is still relatively inconspicuous.
To follow up on my other reply (which hasn't processed through the list
I believe my previous idea about what was wrong was, umm, wrong.
As it so happens, fvwm2 has support for the urgency hint. The default
for *that* is to de-Iconify the window, give it focus as if you clicked
on it, raise it, and move the viewport to show it. Which also
describes what I was seeing.
I changed the function responsible for doing the above (UrgencyFunc) to
do nothing and now Balsa doesn't jump into my face when mail comes in.
(If I feel like it, I can adjust that fvwm function to do something
specific for Balsa.)
My comment in the other e-mail still applies with the added caveat that
this can be easily fixed in fvwm's user configuration, so this is not a
Balsa problem or misuse of gtk_window_set_urgency_hint(). At the most,
I would ask for a comment about Balsa using the urgency hint for
incoming mail somewhere in the documentation; I think that it would
have helped me figure this out without bothering the list.
Mark A. Flacy
] [Thread Prev