*<action>* can exist within one *<mousebind>*
Define a mouse binding. Supported context-names include:
- - TitleBar: The area where the title of the window is shown.
- - Title: The title of the window itself.
+ - TitleBar: The decoration on top of the window, where the window
+ buttons and the window title are shown.
+ - Title: The area of the titlebar (including blank space) between
+ the window buttons, where the window title is displayed.
- WindowMenu: The button on the left.
- Iconify: The button that looks like an underline.
- Maximize: The button that looks like a box.
<action name="Focus"/>
<action name="Raise"/>
</mousebind>
- <mousebind button="Left" action="Drag">
- <action name="Move"/>
- </mousebind>
<mousebind button="Right" action="Click">
<action name="Focus" />
<action name="Raise" />
<menu>client-menu</menu>
</action>
</mousebind>
+ </context>
+
+ <context name="Title">
+ <mousebind button="Left" action="Drag">
+ <action name="Move"/>
+ </mousebind>
<mousebind button="Left" action="DoubleClick">
- <action name="Focus"/>
- <action name="Raise"/>
<action name="ToggleMaximize"/>
</mousebind>
</context>
{ "Frame", "A-Right", "Drag", "Resize", NULL},
{ "Titlebar", "Left", "Press", "Focus", NULL},
{ "Titlebar", "Left", "Press", "Raise", NULL},
- { "TitleBar", "Left", "Drag", "Move", NULL },
- { "TitleBar", "Left", "DoubleClick", "ToggleMaximize", NULL },
+ { "Title", "Left", "Drag", "Move", NULL },
+ { "Title", "Left", "DoubleClick", "ToggleMaximize", NULL },
{ "TitleBar", "Right", "Click", "Focus", NULL},
{ "TitleBar", "Right", "Click", "Raise", NULL},
{ "TitleBar", "Right", "Click", "ShowMenu", "client-menu"},
return candidate >= LAB_SSD_BUTTON_CLOSE
&& candidate <= LAB_SSD_PART_TITLE;
}
+ if (whole == LAB_SSD_PART_TITLE) {
+ /* "Title" includes blank areas of "Titlebar" as well */
+ return candidate >= LAB_SSD_PART_TITLEBAR
+ && candidate <= LAB_SSD_PART_TITLE;
+ }
if (whole == LAB_SSD_FRAME) {
return candidate >= LAB_SSD_BUTTON_CLOSE
&& candidate <= LAB_SSD_CLIENT;