You are not logged in.

#1 2010-07-30 23:48:40

alvin_rxg
Member
From: China / Germany
Registered: 2009-08-18
Posts: 24

sometime firefox steals keyfocus in Openbox 3

Hello everyone,

here i have used openbox for several months. and this annoying problem happens every one or two hours.
at the beginning everything works fine. after once upgraded in Jan 2010, comes a problem to me. sometime i want to change focus from firefox to other programs with shortcutkey Alt+Tab, but it not works(focus NOT in flash). And if i change the focus with mouse, the window focus is right, but whatever i type, things show in firefox... for example, in pidgin chat window i press "Ctrl + W" to close the chat window, but the firefox tab closes. and the cursor in pidgin chat window dosenot blink.

after i once clicked at the firefox's menu or bookmarks, or close firefox, things back to fine. I don't know which staff in firefox steals the key focus. i have tried uninstall all addons and upgraded my system, and once reinstall my archlinux, nothing works. also googled for some infomations... yep have asked in openbox's maillist, they say it may be a problem with firefox. and firefox dosenot reply. sad

addons for firefox:

Adblock Plus
Flashblock
FlashGot
is.gd Creator
Tiny Menu

and:

archlinux 2.6.34 i686
openbox 3.4.11
firefox 3.6.8

i am here asking for some hints and help.
regards


P.S.  also have tried to downgrade firefox and openbox, still not works.

code at #4 cannot solve this problem.

Last edited by alvin_rxg (2010-08-02 12:28:47)


real newbie

Offline

#2 2010-07-31 03:18:26

valium97582
Member
Registered: 2010-06-19
Posts: 126

Re: sometime firefox steals keyfocus in Openbox 3

Hmm, there is a post about the same thing, with pidgin instead. The solution is a small piece of code. If you find it, you can apply it to firefox.


I'm also known as zmv on IRC.

Offline

#3 2010-07-31 09:09:11

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: sometime firefox steals keyfocus in Openbox 3

Did something happen to your openbox configuration file? These lines should be there at least:

  <focus>
    <focusNew>yes</focusNew>
    <!-- always try to focus new windows when they appear. other rules do
       apply -->

To know or not to know ...
... the questions remain forever.

Offline

#4 2010-07-31 12:59:42

alvin_rxg
Member
From: China / Germany
Registered: 2009-08-18
Posts: 24

Re: sometime firefox steals keyfocus in Openbox 3

valium97582 wrote:

Hmm, there is a post about the same thing, with pidgin instead. The solution is a small piece of code. If you find it, you can apply it to firefox.

thanks for your advice! and i find the post https://bbs.archlinux.org/viewtopic.php … 75#p800650
now i put those lines in my openbox's rc.xml

    <application class="Namoroka">
        <focus>no</focus>
    </application>
    <application class="Navigator">
        <focus>no</focus>
    </application>
    <application class="firefox">
        <focus>no</focus>
    </application>

i don't know if it works for me. i will see if the problem happens later.
p.s. after 2 days test, it not really solves the problem. sad


--------------------------------------------------------------------------------

bernarcher wrote:

Did something happen to your openbox configuration file? These lines should be there at least:

  <focus>
    <focusNew>yes</focusNew>
    <!-- always try to focus new windows when they appear. other rules do
       apply -->

yes, those lines are there. and according to the #3 post in https://bbs.archlinux.org/viewtopic.php … 63#p683719
I need to focus on new window..

Last edited by alvin_rxg (2010-08-02 12:29:31)


real newbie

Offline

#5 2010-08-01 01:50:58

valium97582
Member
Registered: 2010-06-19
Posts: 126

Re: sometime firefox steals keyfocus in Openbox 3

You're welcome. I remembered reading something about that, but couldn't remember the post.


I'm also known as zmv on IRC.

Offline

Board footer

Powered by FluxBB