GNOME Bugzilla – Bug 333110
Focus is broken for new chat windows
Last modified: 2006-09-24 18:01:09 UTC
1. Enable sloppy focus 2. Start Gossip 3. Hit Ctrl-N 4. Select a contact 5. Press the chat button Expected: 6. Chat window opens WITH focus Actual: 6. Chat window opens WITHOUT focus (except when your mouse happened to be where the window opens).
This is actually a window manager issue afaik (we are presenting the window, it's up to the window manager to give it focus). It works for me with metacity 2.13.x (upcoming gnome release).
It works for me too when I turn off sloppy focus. With sloppy focus enabled, it doesn't work, though.
If we are presenting the window, regardless to what the window manager does, we have no further influence right Richard. I will close this if you agree.
There is a way to (with an ugly hack) force the window to be focused, but it's really up to the window manager to do it. It works for me and I use sloppy focus. I'd like to get some more info before closing, like which version of metacity was used for example.
I'm using a fully up-to-date metacity CVS HEAD.
OK, I'm using the gnome-2-14 branch and I've tried I think 20 times with different positions of the window and pointer but the chat window always gets focused. I don't know why it's not working for you. Which GTK+ version do you have?
I managed to figure out what's happening. If there is already a window that the new tab is opened in, the the window is not raised. That is definitely something that we should. I was only testing with no window present.
Just to make sure we are talking about the same thing. Do you really mean "new chat windows need focus", or "old windows with new tabs need focus"? Because the first one works for me, the second not.
*** Bug 336246 has been marked as a duplicate of this bug. ***
There is no need for info here, the bug is clear from the above, reopening.
I've tried with all sorts of hacks to get this working reliable without success. If someone wants to give it a shot, feel free.
*** Bug 348244 has been marked as a duplicate of this bug. ***
OK, I've added my little hack (not really a hack, it's the way it's supposed to be done) now that metacity finally gets the timestamp logic right :) Need GNOME 2.16.x with a recent enough metacity for the fix to work.