Open samwhelp opened 1 year ago
I create another sample for enhance.
Drag window to move, when window maximized.
<mouse>
<context name="Titlebar">
<mousebind action="Drag" button="Left">
<action name="Move"/>
</mousebind>
</context>
</mouse>
<mouse>
<context name="Titlebar">
<mousebind action="Drag" button="Left">
<action name="if">
<maximized>yes</maximized>
<then>
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<x>center</x>
<y>current</y>
</action>
<action name="Move"/>
</then>
<else>
<action name="Move"/>
</else>
</action>
</mousebind>
</context>
</mouse>
<mouse>
<context name="Frame">
<mousebind action="Drag" button="A-Left">
<action name="Move"/>
</mousebind>
</context>
</mouse>
<mouse>
<context name="Frame">
<mousebind action="Drag" button="A-Left">
<action name="if">
<maximized>yes</maximized>
<then>
<action name="UnmaximizeFull"/>
<action name="MoveResizeTo">
<x>center</x>
<y>current</y>
</action>
<action name="Move"/>
</then>
<else>
<action name="Move"/>
</else>
</action>
</mousebind>
</context>
</mouse>
I will apply those changes. Thank you very much :)
I don't have account on Gitea, so i write here.
I create a sample for explaining this feature.
mabox / adjustment / mousebind
context Titlebar / orginal
context Titlebar / adjust
context Frame / orginal
context Frame / adjust