mouse: add support for drag mouse event

This commit is contained in:
ARDiDo 2022-01-06 18:30:17 -05:00 committed by Johan Malm
parent ab07b68d7e
commit 5935a78fb4
6 changed files with 58 additions and 31 deletions

View file

@ -144,6 +144,7 @@ Configuration must be wrapped in a <labwc_config> root-node.
- Release: Releasing the specified button in the context.
- Click: Pressing and then releasing inside of the the context.
- DoubleClick: Two presses within the doubleClickTime.
- Drag: Pressing the button within the contex, then moving the cursor
# LIBINPUT

View file

@ -108,7 +108,7 @@
<!--
Multiple <mousebind> can exist within one <context>
Multiple <actions> can exist within one <mousebind>
The following openbox-actions are not supported: "Unshade" and "Drag"
Currently, the only openbox-action not supported is "Unshade"
-->
<mouse>
@ -116,12 +116,12 @@
<doubleClickTime>500</doubleClickTime>
<context name="Frame">
<mousebind button="A-Left" action="Press">
<mousebind button="A-Left" action="Drag">
<action name="Focus"/>
<action name="Raise"/>
<action name="Move"/>
</mousebind>
<mousebind button="A-Right" action="Press">
<mousebind button="A-Right" action="Drag">
<action name="Focus"/>
<action name="Raise"/>
<action name="Resize"/>
@ -129,48 +129,48 @@
</context>
<context name="Top">
<mousebind button="Left" action="Press">
<mousebind button="Left" action="Drag">
<action name="Resize"/>
</mousebind>
</context>
<context name="Left">
<mousebind button="Left" action="Press">
<mousebind button="Left" action="Drag">
<action name="Resize"/>
</mousebind>
</context>
<context name="Right">
<mousebind button="Left" action="Press">
<mousebind button="Left" action="Drag">
<action name="Resize"/>
</mousebind>
</context>
<context name="Bottom">
<mousebind button="Left" action="Press">
<mousebind button="Left" action="Drag">
<action name="Resize"/>
</mousebind>
</context>
<context name="TRCorner">
<mousebind button="Left" action="Press">
<mousebind button="Left" action="Drag">
<action name="Resize"/>
</mousebind>
</context>
<context name="BRCorner">
<mousebind button="Left" action="Press">
<mousebind button="Left" action="Drag">
<action name="Resize"/>
</mousebind>
</context>
<context name="TLCorner">
<mousebind button="Left" action="Press">
<mousebind button="Left" action="Drag">
<action name="Resize"/>
</mousebind>
</context>
<context name="BLCorner">
<mousebind button="Left" action="Press">
<mousebind button="Left" action="Drag">
<action name="Resize"/>
</mousebind>
</context>
<context name="TitleBar">
<mousebind button="Left" action="Press">
<mousebind button="Left" action="Drag">
<action name="Focus"/>
<action name="Raise"/>
<action name="Move"/>