Comment 6 for bug 454535

Revision history for this message
sander (s-devrieze) wrote : Re: [Bug 454535] Re: Weird behaviors with "message counter" and "reset message counter" with Coccinella.

2009/10/25 buzzdee <email address hidden>:
> Here how it looks like for me with windowmaker:

I just tested with Gnome/Compiz:

> ==Tabs disabled==
> 1) First incoming message without opened chat dialogs-->dialog opened in background, message counter+1
> windowmaker: dialog opened in front and with focus to the input field, because it has focus, there is no mesage counter in the title bar (actually that is fine for me)

Gnome/Compiz == windowmaker. I don't think this behaviour is ok;
imagine an employee blindly writing a document with business secrets
in it...if this user receives a message, she may accidentally send
confidential information to this contact. A solution for this problem
is necessary.

2 & 3) not relevant here; there is no Dock in Gnome; this only exists
in Mac OS X.

> 4) Second incoming message-->chat dialog raised to top, without focus (bad: it should stay in the background)
> I have the same here, I found the following code to be the culprit:
>        # 12th June 2009 - Mirko Graziani, <email address hidden>
>        # https://bugs.launchpad.net/coccinella/+bug/297580
>        # Bring the window over the others, but since
>        # the "wm focusmodel" is set to 'passive',
>        # the user is not interrupted in his work.
>        wm focusmodel $dlgstate(w) passive
>        wm attributes $dlgstate(w) -topmost 1
>        wm attributes $dlgstate(w) -topmost 0
>
> What I have seen on KDE (which I find is acutally very annoying:)
> Whenever I receive a message, the window shows up and immediately goes back into the background, so I have a flicker for a fraction of a second (which could cause epileptic seizures, as written in bug #297580 ;)
> Because the request of raising/lowering the window was only for windows, would it be feasible to only use that piece of code on windows OS? Or would it be feasible to add sth. to the preferences interface, where the user can choose whether he wants to have those flashing or not, regardless of the OS? But then, what to make the default value of that preference?

No option in the preferences interface for this. Maybe it's good to
have this only on Windows.

> When I comment out the line:
> wm attributes $dlgstate(w) -topmost 1
> Then the window stays in background when the second message is received, which would be the best for me...
> However, I still wonder why it goes to background with topmost 0 on KDE but stays on top with Windowmaker....

With Gnome/Compiz I have the same behavior as you have with
Windowmaker. With Gnome/Metacity (no visual effects) I have the same
flickering as you have with KDE.

> ==Tabs enabled==
> 1) First incoming message without opened chat dialogs-->same behaviour as without tabs
> same as described above, so fine for me

Same behaviour too, and I don't like it that much for the reason
described above.

2 & 3) not relevant here; there is no Dock in Gnome; this only exists
in Mac OS X.

> 4) Second incoming message-->same behaviour as without tabs
> same here

idem