Closed samwhelp closed 8 months ago
[Adjustment] Drag window to move, when window maximized
Drag window to move, when window maximized.
According archcraft-openbox / rc.xml
I create a sample for explaining this feature.
<mouse> <context name="Titlebar"> <mousebind action="Drag" button="A-Left"> <action name="Move"/> </mousebind> <mousebind action="Drag" button="Left"> <action name="if"> <maximizedvertical>yes</maximizedvertical> <then> <action name="Unmaximize"/> <direction>vertical</direction> <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="Titlebar"> <!-- <mousebind action="Drag" button="A-Left"> <action name="Move"/> </mousebind> //--> <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="W-Left"> <action name="Move"/> </mousebind> </context> </mouse>
<mouse> <context name="Frame"> <!-- <mousebind action="Drag" button="W-Left"> <action name="Move"/> </mousebind> //--> <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>
That's the default behavior already. Just some extra code here for config file.
[Adjustment] Drag window to move, when window maximized
According archcraft-openbox / rc.xml
I create a sample for explaining this feature.
archcraft-openbox / adjustment / mousebind
context Titlebar / orginal
context Titlebar / adjust
context Frame / orginal
context Frame / adjust
Link