You are not logged in.

#1 2016-06-23 15:52:22

berniz95
Member
From: Vauréal France
Registered: 2016-02-23
Posts: 48

[Solved] Change window manager behaviour

Hello, I'm using the latest crunchbang distribution with nitrogen updates. There's something I would like to tell openbox from the beginning but don't know how :
I would like a window to raise *only* when I click in the title bar and not in the frame.
Which allows to copy something from a window somewhere behind and paste it in the front window without switching windows.
For instance
<mousebind button="Left" action="Press">
      <action name="Focus"/>
      </mousebind>
Is not effective : the window I click on stays back and gets the focus but not the events ! So I can't select text or do anything.

Last edited by berniz95 (2016-06-23 17:47:59)

Offline

#2 2016-06-23 16:21:54

damo
....moderator....
Registered: 2015-08-20
Posts: 4,375

Re: [Solved] Change window manager behaviour

The first thing that springs to mind is to have a keybind to toggle the window to stay on top: http://openbox.org/wiki/Help:Actions#ToggleAlwaysOnTop

So set it to stay on top, then do your C&P etc, then toggle it to normal behaviour.


Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#3 2016-06-23 17:47:18

berniz95
Member
From: Vauréal France
Registered: 2016-02-23
Posts: 48

Re: [Solved] Change window manager behaviour

I found a different way :

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

last line commented out does what I expect : tell the Client to focus but not raise.

Thanks for answering quickly !

(edit) in file ~/.config/openbox/rc.xml that is.

Last edited by berniz95 (2017-08-30 10:42:01)

Offline

Board footer

Powered by FluxBB