LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   *box window managers (https://www.linuxquestions.org/questions/linux-general-1/%2Abox-window-managers-799474/)

MTK358 04-01-2010 07:22 PM

*box window managers
 
I decided to try the *box window managers.

Anyway, is there a way to have Openbox do Sloppy Focus (i.e. focus window on mouse over and do not raise on click)?

And it seems that Blackbox thinks my two monitors are one big monitor. It even maximizes windows across the two monitors!

TheStarLion 04-02-2010 06:16 AM

For Openbox, try installing obconf, as I believe there's a means in there to allow for sloppy focus.
I can't say much on Blackbox, having not used it, I find Fluxbox more reliable, but Openbox is my preference.

reed9 04-02-2010 06:22 AM

http://openbox.org/wiki/Help:MouseFocusExample

linus72 04-02-2010 06:34 AM

see here too

http://urukrama.wordpress.com/openbox-guide/

http://wiki.archlinux.org/index.php/Openbox

MTK358 04-02-2010 08:14 AM

Still didn't find anything helpful.

I can get windows to focus on mouse over, but I do not want them to raise when clicked.

reed9 04-02-2010 08:44 AM

EDIT: Sorry, raise when clicked is your issue. Hmm....

The Raise on Focus option doesn't work?

Code:

<focus>
  <focusNew>yes</focusNew>
  <!-- always try to focus new windows when they appear. other rules do
      apply -->
  <followMouse>yes</followMouse>
  <!-- move focus to a window when you move the mouse into it -->
  <focusLast>yes</focusLast>
  <!-- focus the last used window when changing desktops, instead of the one
      under the mouse pointer. when followMouse is enabled -->
  <underMouse>yes</underMouse>
  <!-- move focus under the mouse, even when the mouse is not moving -->
  <focusDelay>200</focusDelay>
  <!-- when followMouse is enabled, the mouse must be inside the window for
      this many milliseconds (1000 = 1 sec) before moving focus to it -->
  <raiseOnFocus>yes</raiseOnFocus>
  <!-- when followMouse is enabled, and a window is given focus by moving the
      mouse into it, also raise the window -->

</focus>


reed9 04-02-2010 08:46 AM

Ok, raise on click is a mousebinding. In your rc.xml, look for
Code:

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

And comment out or remove the Raise action name.

MTK358 04-02-2010 08:52 AM

Quote:

Originally Posted by reed9 (Post 3921637)
Ok, raise on click is a mousebinding. In your rc.xml, look for
Code:

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

And comment out or remove the Raise action name.

That works great! I changed it to:

Code:

<context name="Client">
    <mousebind button="Left" action="Press">
      <action name="Focus"/>
      <!-- <action name="Raise"/> -->
    </mousebind>


MTK358 04-02-2010 07:59 PM

I found that windows still raised when the middle and right buttons were clicked. But they had bindings right below this one and I commented out the raise part of them, too.


All times are GMT -5. The time now is 10:40 AM.