I'm trying to figure out what mousebind is focusing the desktop if I left-click it. I don't want my active window to lose focus if I click the desktop but I'd still like to be able to right-click and middle-click it.
Last edited by hhh (2015-07-30 04:26:49)
Left click does nothing for me at all. Centre and right work though.
The top of my ~/.config/openbox/rc.xml
<?xml version="1.0"?> <!-- Do not edit this file, it will be overwritten on install. Copy the file to $HOME/.config/openbox/ instead. --> <openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude"> <resistance> <strength>10</strength> <screen_edge_strength>20</screen_edge_strength> </resistance> <focus> <focusNew>yes</focusNew> <!-- always try to focus new windows when they appear. other rules do apply --> <followMouse>no</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>no</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>no</raiseOnFocus> <!-- when followMouse is enabled, and a window is given focus by moving the mouse into it, also raise the window --> </focus> <placement> <policy>UnderMouse</policy> <!-- 'Smart' or 'UnderMouse' --> <center>yes</center> <!-- whether to place windows in the center of the free area found or the top left corner --> <monitor>Mouse</monitor> <!-- with Smart placement on a multi-monitor system, try to place new windows on: 'Any' - any monitor, 'Mouse' - where the mouse is, 'Active' - where the active window is, 'Primary' - only on the primary monitor --> <primaryMonitor>1</primaryMonitor> <!-- The monitor where Openbox should place popup dialogs such as the focus cycling popup, or the desktop switch popup. It can be an index from 1, specifying a particular monitor. Or it can be one of the following: 'Mouse' - where the mouse is, or 'Active' - where the active window is --> </placement>
BunsenLabs Forums now Open for Registration
I'm not using #!'s rc.xml., I should have mentioned that. In that file, under <Context name="Desktop">, I removed...
<mousebind button="Left" action="Press"> <action name="Focus"/> <action name="Raise"/> </mousebind> <mousebind button="Right" action="Press"> <action name="Focus"/> <action name="Raise"/> </mousebind>
Seems to be working as I wanted. Thanks for the response, Sector11, and thanks for the compliment in the other thread on my setup!
Use obconf and see if there are settings for focus policy - setting the focus policy you want should make the changes for you - catch any you may have missed doing a manual edit.
"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe
I checked there, all good. Thanks PackRat!
-edit- In BunsenLabs, it's the similar. delete...
<mousebind button="Left" action="Press"> <action name="Focus"/> <action name="Raise"/> </mousebind>
Is there a good reason to keep that keybind?
Last edited by hhh (2015-07-30 04:30:45)