archcraft-os / archcraft-openbox

// Configuration : Openbox
GNU General Public License v3.0
101 stars 15 forks source link

[Adjustment] Drag window to move, keep shaded, when window shaded. #9

Closed samwhelp closed 8 months ago

samwhelp commented 1 year ago

Drag window to move, keep shaded, when window shaded.

I create a sample for explaining this feature.

archcraft-openbox / adjustment / mousebind

context Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner / orginal

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

context Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner / adjust

  <mouse>
    <context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner">
      <!--
      <mousebind action="Press" button="Left">
        <action name="Focus"/>
        <action name="Raise"/>
        <action name="Unshade"/>
      </mousebind>
      //-->
      <mousebind action="Press" button="Left">
        <action name="Focus"/>
        <action name="Raise"/>
      </mousebind>
    </context>
  </mouse>

Link

adi1090x commented 8 months ago

Adjusted! (Sorry, i don't even know why the PR were closed, perhaps conflicts)