You are not logged in.

#1 2023-05-03 22:40:35

THX1138
Member
Registered: 2019-01-14
Posts: 286

Disable window shading on mouse scrolling

I thought I would write this little tip on, how to disable the function of
"rolling up", or "shading", a window. That is, when the mouse pointer is on the window
title bar and the scroll wheel is rolled upwards the window collapses down to title bar
only.

It may seem obvious to many people how to do this, however, I haven't used Openbox for a few years and when I tried to search for an answer was very surprised to find
absolutely nothing that taught me other than looking through bl-rc.xml and realising
what to do. This is to help those who are using Bunsenlabs, but are new to openbox:

Edit ~/.config/openbox/bl-rc.xml
find the line that contains

 <mousebind button="Up" action="Click">

and comment it out like this

  <!--    <mousebind button="Up" action="Click">

then further down the file, find the line that contains

</mousebind>

and end the comment section like this

</mousebind> -->

I’ve got this horrible feeling that if there is such a thing as reincarnation, knowing my luck, I’ll come back as me!
---------
Robotic Santa on Deviant Art

Offline

#2 2023-05-04 12:04:46

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,026

Re: Disable window shading on mouse scrolling

You might want to describe which:

      <mousebind button="Up" action="Click">

to use.

in my rc.xml there are three lines that start:

      <mousebind button="Up" action="Click">

Line 684
Line 862, and
Line 911
--- >> EDIT: Your lines may vary, my .rc file is modified.

You do not want the last two that are wrapped up inside a
<context name="Desktop">, and
<context name="MoveResize">
section

Line 684  <<<--- this one

      <mousebind button="Up" action="Click">
        <action name="if">
          <shaded>no</shaded>
          <then>
            <action name="Shade"/>
            <action name="FocusToBottom"/>
            <action name="Unfocus"/>
            <action name="Lower"/>
          </then>
        </action>
      </mousebind>

Line 862  <<<--- NOT this one

    <context name="Desktop">
      <mousebind button="Up" action="Click">
        <action name="GoToDesktop">
          <to>previous</to>
        </action>
      </mousebind>
      <mousebind button="Down" action="Click">
        <action name="GoToDesktop">
          <to>next</to>
        </action>
      </mousebind>
      <mousebind button="A-Up" action="Click">
        <action name="GoToDesktop">
          <to>previous</to>
        </action>
      </mousebind>
      <mousebind button="A-Down" action="Click">
        <action name="GoToDesktop">
          <to>next</to>
        </action>
      </mousebind>
      <mousebind button="C-A-Up" action="Click">
        <action name="GoToDesktop">
          <to>previous</to>
        </action>
      </mousebind>
      <mousebind button="C-A-Down" action="Click">
        <action name="GoToDesktop">
          <to>next</to>
        </action>
      </mousebind>
      <mousebind button="Left" action="Press">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
    </context>

Line 911  <<<--- NOT this one

    <context name="MoveResize">
      <mousebind button="Up" action="Click">
        <action name="GoToDesktop">
          <to>previous</to>
        </action>
      </mousebind>
      <mousebind button="Down" action="Click">
        <action name="GoToDesktop">
          <to>next</to>
        </action>
      </mousebind>
      <mousebind button="A-Up" action="Click">
        <action name="GoToDesktop">
          <to>previous</to>
        </action>
      </mousebind>
      <mousebind button="A-Down" action="Click">
        <action name="GoToDesktop">
          <to>next</to>
        </action>
      </mousebind>
    </context>

The help you were looking for is here: http://openbox.org/wiki/Help:Bindings and http://openbox.org/wiki/Help:Actions

Last edited by Sector11 (2023-05-04 12:56:40)


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#3 2023-05-04 12:41:47

THX1138
Member
Registered: 2019-01-14
Posts: 286

Re: Disable window shading on mouse scrolling

Wow, Thank you sector11, that certainly adds clarity to the matter. I only wish I had been more thorough in my account of this method


I’ve got this horrible feeling that if there is such a thing as reincarnation, knowing my luck, I’ll come back as me!
---------
Robotic Santa on Deviant Art

Offline

#4 2023-05-04 14:20:12

sleekmason
zoom
Registered: 2018-05-22
Posts: 1,108
Website

Re: Disable window shading on mouse scrolling

You can also just disable it in the openbox configuration manager, go to appearance and remove the 'S' from the button order.

Edit* No. Not the same thing.  I was thinking the action was associated with the placement of the button. Removing the button will not remove the action.

Last edited by sleekmason (2023-05-04 14:35:28)

Offline

#5 2023-05-04 21:07:47

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,026

Re: Disable window shading on mouse scrolling

THX1138 wrote:

Wow, Thank you sector11, that certainly adds clarity to the matter. I only wish I had been more thorough in my account of this method

I only discovered all that from reading your post and Startpaging it.  I don't do GUGL.

sleekmason wrote:

You can also just disable it in the openbox configuration manager, go to appearance and remove the 'S' from the button order.

Edit* No. Not the same thing.  I was thinking the action was associated with the placement of the button. Removing the button will not remove the action.

If ya don't try, ya don't learn.
And because of your post I got rid of both D and S
Hate having the same garbage ... errr ... programs on all desktops.
And since I always use the "mouse wheel" to roll up the program the S button is not needed as well.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

Board footer

Powered by FluxBB