Not logged in. · Lost password · Register
Forum: Community Help and General Chat RSS
Chat window focus issues

Announcement

11-16-2005, 13:33 by halr9000
Subject: Psi Groupchat (new address)
Join us at the Psi Groupchat (MUC)! Room name: psi@conference.psi-im.org
miracle2k #1
Member since 06/2008 · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: Chat window focus issues
I'm slighty (ok: hugly) frustrated right now. Here's the current behaviour of my Psi installation:

When a new messages comes in from a contact whose window is currently closed, that window will pop in the foreground and still the OS keyboard focus - which is incredibly frustrating. Once the window is open, this issue no longer occurs, it will stay in the background when new messages come in - for the most part that is. Because if there are multiple chat windows open, and you are currently typing in one, incoming messages in other windows will steal the focus once again.

This started to appear recently. It worked fine before, and I don't remember changing anything. I tried any number of combinations of the following options, but in case I can see an effect at all, it's never quite what I want (no focus stealing):

Events/Auto-open new messages
Events/Raise roster window on new event
Chat/Raise chat window on receiving new messages
Chat/Alert chat messages even if chat window is open

In fact, when guiding a friend through the Psi installation a couple weeks before, he had the exact some problem as I do now. We went through all options to make sure we had configured Psi exactly the same, except it worked only for me. Well, no longer ;)

Does anybody know which options exactly have to be set to what to make Psi chat windows not steal the focus, from anywhere, under any circumstance?
Avatar
michalj (Moderator) #2
Member since 04/2004 · 2285 posts · Location: Legionowo, Poland
Group memberships: Global Moderators, Members
Show profile · Link to this post
Could you specify what operating system and window manager are you using?

If you are running Windows, please try TweakUI tool from Microsoft PowerToys. Among hundreds of other options, there is one that will satisfy you - General|Focus|Prevent applications from stealing focus.
Michał Jazłowiecki (michalj)
Psi Forum & Wiki Moderator :: Psi-Daisy Author
Avatar
infiniti (Administrator) #3
Member since 09/2002 · 1442 posts · Location: California, USA
Group memberships: Administrators, Developers, Members
Show profile · Link to this post
The only true way to avoid focus stealing is to not enable the auto-opening of anything, which is actually the default.  Psi was invented by a person who hates focus stealing.

The auto-open features were added later to please people who enjoy focus stealing, and admittedly these features were never well tested among the Psi developers.  I believe that focus stealing on the first message as well as all subsequent messages is how it always worked.  If you managed to only get your focus stolen on the first message, then well that's interesting.... :)

You might try a version 0.12 snapshot.  I believe you can use auto-open and then focus is never stolen, not even on the first message.  Try it and tell us if it is any good.
-Justin
x656b694d #4
Member since 01/2008 · 20 posts
Group memberships: Members
Show profile · Link to this post
Hi,

The same behavior here (Psi 0.12 RC3 from the trunk, Ubuntu 8.04).

Plus another really annoying focus issue. I use keyboard shortcuts to show/hide the roster window. What is 100% wrong is that when I press Enter (or even double click) on a contact, the chat window appears not in focus. Instead, it is in the bottom of windows z-order. The roster window stays in focus.
I have all «auto-popup» options turned off.

Thanks,
-Mike
Avatar
webit #5
Member since 11/2006 · 6 posts · Location: Bielsko-Biala, Poland
Group memberships: Members
Show profile · Link to this post
Hi everybody,

Quote by x656b694d on 06-18-2008, 17:14:
The same behavior here (Psi 0.12 RC3 from the trunk, Ubuntu 8.04).

Same for me, same OS. Latest Ubuntu 8.04 and psi build from latest svn repository files.

The shortcut I use only for opening incoming chat message (Ctrl+Shift+Alt+P). That causes chat window open somewhere in the background (contact list window either open or closed [tray icon]).

Also having opened contact list, I click on any contact in list and chat windows opens in background leaving focus on contact list window.

Anyone can help?
Dominik Bułaj (webit//jabster.pl)
My blog & portfolio page
Avatar
webit #6
Member since 11/2006 · 6 posts · Location: Bielsko-Biala, Poland
Group memberships: Members
Show profile · Link to this post
Have anyone figured out what can it be?
Why chat window looses focus on Gnome/X11? No problems on window - only on Ubuntu as described above.
Dominik Bułaj (webit//jabster.pl)
My blog & portfolio page
Sterkrig #7
User title: gentoosiast
Member since 08/2006 · 59 posts · Location: Rampova, Inkerimaa
Group memberships: Members
Show profile · Link to this post
Confirmed on Fluxbox@Gentoo Linux amd64, 0.12
slajerek #8
Member since 09/2006 · 11 posts
Group memberships: Members
Show profile · Link to this post
On my Fluxbox (Linux) I have a problem, when I open a chat window for the first time it appears ok on current desktop workspace (I have six desktops configured in the fluxbox), however when I move to another desktop (#2, and chat window is on desktop #1), when I double click on the same contact - nothing happens. I assume that chat window disappears from desktop #1. It's quite strange behavior... shouldn't psi move that window for me from previous desktop? The problem occurs when I would like to chat again. Double clicking on the contact is confusing as nothing really appears anymore (there's no chat window open on desktop #1 nor #2). When I cycle through all my desktops searching for the chat window I cannot find it anymore. So here's the situation: I double click on the contact in roster and I cannot see the chat window. So I cycle through all desktops - it's not there. Maybe I have just closed that chat window? Ok, so I click on the contact again, cycle through all desktops, but I still can't see the chat window! In principle, after that situation the chat window DOES NOT appear on ANY desktop. Solution is simple: I have to restart the PSI to start chatting again. Obviously it's annoying as hell. Unfortunately, this behavior does not happen all the time, in some situations showing the chat window is as we expect, sometimes the chat window just disappears and that's all.
This post was edited 2 times, last on 10-22-2008, 09:23 by slajerek.
slajerek #9
Member since 09/2006 · 11 posts
Group memberships: Members
Show profile · Link to this post
Sorry I wanted to edit previous post, but I can't - it's denied (?!!).

So to reproduce:
1. move to desktop #1
2. start the PSI
3. Double click on the contact "A" in roster, chat window appears
4. move to desktop #2
5. Double click on the contact "A in roster, nothing happens (chat window disappears from desktop #1?)
6. move back to desktop #1
7. Double click on the contact "A" in roster, nothing happens (chat window does not appear!)
8. cycle through all desktops, there is no chat window open
9. To check again: Double click on the contact "A" in roster, nothing happens (chat window does not appear!)
10. cycle through all desktops, there is no chat window open

In principle, after that situation the chat window for contact "A" DOES NOT appear on ANY desktop anymore. Solution is simple:
11. Restart the PSI to start chatting again.

Obviously it's annoying as hell.
Avatar
halr9000 (Administrator) #10
User title: I work here
Member since 11/2002 · 2311 posts · Location: Atlanta
Group memberships: Administrators, Members
Show profile · Link to this post
Off Topic:
Sorry I wanted to edit previous post, but I can't - it's denied (?!!).
Yes--we don't people to be able to rewrite history.  You can edit your posts for about 10 minutes.
Hal Rottenberg
Webmaster, Evangelist, Co-conspirator to the Revolution
Sterkrig #11
User title: gentoosiast
Member since 08/2006 · 59 posts · Location: Rampova, Inkerimaa
Group memberships: Members
Show profile · Link to this post
Confirmed, extremely annoying indeed.
slajerek #12
Member since 09/2006 · 11 posts
Group memberships: Members
Show profile · Link to this post
could be something messy with leaving chat history (chat window re-opening)? This issue sometimes appear also on Windows and AltDesk (desktop switcher), but with slightly different behavior.
Close Smaller – Larger + Reply to this post:
Smilies: :mellow: :huh: ^_^ :o ;) :P :D :lol: B) :rolleyes: -_- <_< :) :wub: :angry: :( :unsure: :wacko: :blink: :ph34r:
Special characters:
Go to forum
Unclassified NewsBoard devel of 20051113 © 2003-5 by Yves Goergen
Current time: 11-20-2008, 05:54:31 (UTC -05:00)