設定在視窗最大化時,也能拖曳視窗移動 (加強版)
Reference
- archcraft-openbox / rc.xml
範例
範例 |
---|
drag_window_to_move_when_window_maximized_enhance |
drag_window_to_move_when_window_maximized_advance |
all_enhance |
openbox / adjustment / mousebind
Drag window to move, when window maximized.
context Titlebar / 一開始的設定片段
<mouse>
<context name="Titlebar">
<mousebind button="Left" action="Drag">
<action name="Move"/>
</mousebind>
</context>
</mouse>
context Titlebar / 調整過的設定片段
<mouse>
<context name="Titlebar">
<mousebind button="Left" action="Drag">
<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>
context Frame / 一開始的設定片段
<mouse>
<context name="Frame">
<mousebind button="A-Left" action="Drag">
<action name="Move"/>
</mousebind>
</context>
</mouse>
context Frame / 調整過的設定片段
<mouse>
<context name="Frame">
<mousebind button="A-Left" action="Drag">
<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>
相關討論
- archcraft-openbox / [Adjustment] Drag window to move, when window maximized
- archcraft-lxde / [Adjustment] Drag window to move, when window maximized
- mabox / [about mabox mousebind] Drag window to move, when window maximized.