Bug 1053 - focus is lost using Mozilla or Firebird with tabs
Status: CLOSED INVALID
Alias: None
Product: Openbox
Classification: Unclassified
Component: general
Version: 3.0
Hardware: PC Linux
: P2 normal
Assignee: Mikachu
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2003-12-01 12:32 EST by Armando Di Cianno
Modified: 2007-05-16 15:52:23 EDT
2 users (show)

See Also:


Attachments
Fixes the mozilla focus issue in bug #1053 (762 bytes, patch)
2004-09-05 09:37 EDT, Mina Naguib

Description Armando Di Cianno 2003-12-01 12:32:20 EST
I'm not sure if this is more appropriately a Mozilla bug, or a Openbox bug, 
but I cannot reproduce the behavior using KDE's kwin. 
 
When I have multiple firebird (or Mozilla) windows open, with at least 1 on a 
different desktop than the others, and at least 1 has tabs, at arbitrary 
points of general use keyboard focus seems to get lost.  I can still mouse on, 
mouse click, mouse copy, and use menus on the browswer window/tab I'd like to 
enter text in, but text focus just doesn't go.  Every so often, especially 
when I'm using multiple windows, tabs or not, the "other" window definitely 
begins receving keypresses (bound events within the browser get triggered). 
 
I've had this problem on WindowMaker, blackbox, older openbox, and now the 
newest openbox release.  Again, I'm still unsure where to most appropriately 
post this bug, but openbox rocks, so ... 
 
Mashing the keys and changing focus to the different windows repeatedly, and 
with mild fury, sometimes allieviates the annoyance.
Comment 1 Armando Di Cianno 2003-12-01 12:33:46 EST
I should also add that changing the openbox focus behavior does not seem to 
help this problem at all. 
Comment 2 Ondřej Světl 2003-12-08 12:41:58 EST
I have the same problem. I open mozilla's navigator window first, then I open
mozilla -mail on another workspace and when I switch to navigator's workspace,
the mail client has keyboard focus and when I switch to mail's workspace then
the navigator has keyboard focus. I'm not sure, whether it is affected by
multiple tabs or not, I'm going to check it and I'll post a new comment.
Comment 3 Ondřej Světl 2003-12-08 12:47:16 EST
Ok, it has nothing to do with multiple tabs. I closed my mozilla, opened
navigator, pressed ctrl+2, switched to another workspace and waited for mail to
open. Then I switched back to the navigator and tried ctrl+l to get to the
location bar with no success. I went back to the mail, selected a message, went
back to navigator and pressed ctrl+l again. It opened a mail reply window
instead of sending cursor to location bar. I was also unable to fill this form
and I had to close mail first. It seems, openbox has some troubles when
identifying different mozilla's windows. I know no other software behaving so
strange. That's all I found.
Comment 4 Ondřej Světl 2003-12-08 12:50:47 EST
Last thing: I don't experience this problem when I have both windows (nav and
mail) on the same workspace.
Comment 5 Marius 2003-12-19 14:01:06 EST
This is a Mozilla issue, not Openbox, as you've noticed and stated.
Comment 6 Mina Naguib 2004-06-07 13:28:09 EDT
"This is a mozilla issue" is probably the correct answer, however since mozilla
browser and mozilla mail are a big chunk of my worktime, I can not have them
"not work".

Some background:
I just migrated to openbox from fluxbox and I absolutely love it, EXCEPT for
this one bug which makes it unuseable for me.  I'll have to switch back to
fluxbox until this is resolved somehow.

Note:
At some time a few months ago this used to happen in fluxbox also, however after
some upgrades (both mozilla and fluxbox) the problem disappeared.  I was really
disappointed to see this problem re-surface when I tried openbox.

If fluxbox found a work-around to the problem, couldn't openbox ?

Comment 7 Mina Naguib 2004-06-07 14:55:17 EDT
As a follow up to my previous post (I'm on a try-new-WMs binge), this problem
does NOT exist in PekWM
Comment 8 Mina Naguib 2004-09-05 09:37:26 EDT
Created attachment 490 [details]
Fixes the mozilla focus issue in bug #1053
Comment 9 Mina Naguib 2004-09-05 09:38:15 EDT
I believe I may have fixed this bug.  Please see attached patch.

Here's how to replicate the bug (sans patch):

1. Run the mozilla browser in desktop 1
2. Click on the tiny envelope in the lower-left of the browser to launch mozilla
mail
3. Quickly (using a key binding) switch to desktop 2 before mozilla mail runs

So now you have the browser in desktop 1 and mail in desktop 2

Start using both, switch using keybindings.  In a minute or two you'll notice
that the one you are using no longer responds to some keystrokes, and that they
are delivered to the other app in the other desktop (or none at all).

I'm no Xlib guru so I've just tried to re-write in openbox what I've seen done
to the Fluxbox code in cvs log in December 2003 to fix that same issue.