You are not logged in.

#1 2018-06-03 21:24:48

Beep
Member
Registered: 2018-05-17
Posts: 11

[Solved] Toggle maximise by double-clicking the title bar

I know there's the Alt-F6 keyboard shortcut to (un)maximise windows but I'd like to also be able to do so by double-clicking a window's title bar. I found the below in my rc.xml file, which I think defines this behaviour:

<mousebind button=Left" action="DoubleClick">
  <action name="ToggleMaximize" />
</mousebind>

Double-clicking on the title bar doesn't do anything though. Is there another action I can add to my rc.xml file to get this to work?

Muchas gracias!

Last edited by Beep (2018-06-04 13:06:06)

Offline

#2 2018-06-03 22:43:07

brontosaurusrex
Middle Office
Registered: 2015-09-29
Posts: 2,755

Re: [Solved] Toggle maximise by double-clicking the title bar

      <mousebind action="DoubleClick" button="Left">
        <action name="ToggleMaximizeFull"/>
      </mousebind>

Online

#3 2018-06-03 23:07:11

Beep
Member
Registered: 2018-05-17
Posts: 11

Re: [Solved] Toggle maximise by double-clicking the title bar

brontosaurusrex wrote:
      <mousebind action="DoubleClick" button="Left">
        <action name="ToggleMaximizeFull"/>
      </mousebind>

Hmmm, that doesn't work for me.

Offline

#4 2018-06-03 23:43:07

grapefruit
Member
Registered: 2017-01-03
Posts: 16

Re: [Solved] Toggle maximise by double-clicking the title bar

In your code, Beep, there's a missing " before Left; is that also missing from your rc file?

It also doesn't need the Full, but ensure it's in the correct context:

    <context name="Titlebar">
...    
      <mousebind button="Left" action="DoubleClick">
        <action name="ToggleMaximize"/>
      </mousebind>
...
    </context>

Last edited by grapefruit (2018-06-04 00:00:03)

Offline

#5 2018-06-04 12:06:13

Beep
Member
Registered: 2018-05-17
Posts: 11

Re: [Solved] Toggle maximise by double-clicking the title bar

In your code, Beep, there's a missing " before Left; is that also missing from your rc file?

That was a typo - I was writing my message on a different computer.

It also doesn't need the Full, but ensure it's in the correct context:

    <context name="Titlebar">
...    
      <mousebind button="Left" action="DoubleClick">
        <action name="ToggleMaximize"/>
      </mousebind>
...
    </context>

This is the Titlebar context block I got at the moment (copied and pasted this time!):

  <context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">
    <mousebind button="Left" action="Press">
      <action name="Focus"/>
      <action name="Raise"/>
      <action name="Unshade"/>
    </mousebind>
    <mousebind button="Left" action="DoubleClick">
      <action name="ToggleMaximize"/>
    </mousebind>
...
  </context>

That doesn't work. The following does work:

  <context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">
    <mousebind button="Left" action="Press">
      <action name="ToggleMaximize"/>
    </mousebind>
...
  </context>

I can then toggle windows with a single left-click. Not quite what I want but I'm getting closer...

Offline

#6 2018-06-04 12:21:00

grapefruit
Member
Registered: 2017-01-03
Posts: 16

Re: [Solved] Toggle maximise by double-clicking the title bar

It looks like you're in the wrong bit.

You're here:

<context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">

when you should be here:

<context name="Titlebar">

Offline

#7 2018-06-04 13:04:33

Beep
Member
Registered: 2018-05-17
Posts: 11

Re: [Solved] Toggle maximise by double-clicking the title bar

grapefruit wrote:

It looks like you're in the wrong bit.

You're here:

<context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">

when you should be here:

<context name="Titlebar">

That was it! Now working.

Many thanks for your help.

Offline

#8 2018-06-04 13:57:53

grapefruit
Member
Registered: 2017-01-03
Posts: 16

Re: [Solved] Toggle maximise by double-clicking the title bar

De na! :-)

Offline

Board footer

Powered by FluxBB