[openbox] No focus if skip_taskbar=yes

Anthony Thyssen A.Thyssen at griffith.edu.au
Fri Aug 28 01:12:29 EDT 2009


On Thu, 27 Aug 2009 23:51:39 +0200
Andras Fink <andreas.fink85 at googlemail.com> wrote:

| Hello,
| 
| I'm trying to get urxvt to skip the taskbar, but at the same time to get input 
| focus if opened. The entry in rc.xml looks like that:
| 
|     <application name="urxvt">
|       <focus>yes</focus>
|       <skip_taskbar>yes</skip_taskbar>
|     </application>
| 
| the problem is, that urxvt does NOT get the focus which is not very useful for 
| a terminal (the same happens with every other application, so not only an 
| urxvt issue).
| If I comment the <skip_taskbar>, then everything works (except of that I get 
| now an entry in the taskbar).
| I just wanted to ask if this is by design, i.e. this is the desired behaviour 
| or if this is a bug (then I'll file a bug report).
| 
I have an application usign skip_taskbar...

    <application class="Gkrellm">
      <decor>no</decor>
      <desktop>all</desktop>
      <skip_taskbar>yes</skip_taskbar>
    </application>

If I click on the application and press F1 then the configuration pops up
so it obviously gets the keyboard focus!!!!

Similarly for pressing buttons or other actions.




It may be that your 'global window' event handling is not right...

I have...
  <mouse>
    ...
    <context name="Client">
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
      </mousebind>
      <mousebind button="Middle" action="Press">
        <action name="Focus"/>
      </mousebind>
      <mousebind button="Right" action="Press">
        <action name="Focus"/>
      </mousebind>
      <mousebind button="Left" action="Release">
        <action name="Focus"/>
      </mousebind>
      <mousebind button="Middle" action="Release">
        <action name="Focus"/>
      </mousebind>
      <mousebind button="Right" action="Release">
        <action name="Focus"/>
      </mousebind>
    </context>
    ...
  </mouse>

To try and ensure my 'focus follows mouse' type configuration works
properly, but don't raise the window.

The default rc.xml has extra 'raise' actions, and no button release
events.

  <context name="Client">
    <mousebind button="Left" action="Press">
      <action name="Focus"/>
      <action name="Raise"/>
    </mousebind>
    <mousebind button="Middle" action="Press">
      <action name="Focus"/>
      <action name="Raise"/>
    </mousebind>
    <mousebind button="Right" action="Press">
      <action name="Focus"/>
      <action name="Raise"/>
    </mousebind>
  </context>


NOTE: There is a annoyance in that if a window opens or closes I may
not be focused on the window my mouse is over!

That is a real PAIN to a 'follow mouse' focus policy!


  Anthony Thyssen ( System Programmer )    <A.Thyssen at griffith.edu.au>
 -----------------------------------------------------------------------------
       "Never argue with a computer.'   --   Avon, "Blake's 7"
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/


More information about the openbox mailing list