- AllDesktops: A button that, by default, toggles omnipresence of a
window.
- Close: A button that, by default, closses a window.
+ - Border: The window's border including Top...BRCorner below.
- Top: The top edge of the window's border.
- Bottom: The bottom edge of the window's border.
- Left: The left edge of the window's border.
</mousebind>
</context>
- <context name="Top">
- <mousebind button="Left" action="Drag">
- <action name="Resize" />
- </mousebind>
- </context>
- <context name="Left">
- <mousebind button="Left" action="Drag">
- <action name="Resize" />
- </mousebind>
- </context>
- <context name="Right">
- <mousebind button="Left" action="Drag">
- <action name="Resize" />
- </mousebind>
- </context>
- <context name="Bottom">
- <mousebind button="Left" action="Drag">
- <action name="Resize" />
- </mousebind>
- </context>
- <context name="TRCorner">
- <mousebind button="Left" action="Drag">
- <action name="Resize" />
- </mousebind>
- </context>
- <context name="BRCorner">
- <mousebind button="Left" action="Drag">
- <action name="Resize" />
- </mousebind>
- </context>
- <context name="TLCorner">
- <mousebind button="Left" action="Drag">
- <action name="Resize" />
- </mousebind>
- </context>
- <context name="BLCorner">
+ <context name="Border">
<mousebind button="Left" action="Drag">
<action name="Resize" />
</mousebind>
const char *name, *value;
} attributes[2];
} mouse_combos[] = { {
- .context = "Left",
- .button = "Left",
- .event = "Drag",
- .action = "Resize",
- }, {
- .context = "Top",
- .button = "Left",
- .event = "Drag",
- .action = "Resize",
- }, {
- .context = "Bottom",
- .button = "Left",
- .event = "Drag",
- .action = "Resize",
- }, {
- .context = "Right",
- .button = "Left",
- .event = "Drag",
- .action = "Resize",
- }, {
- .context = "TLCorner",
- .button = "Left",
- .event = "Drag",
- .action = "Resize",
- }, {
- .context = "TRCorner",
- .button = "Left",
- .event = "Drag",
- .action = "Resize",
- }, {
- .context = "BRCorner",
- .button = "Left",
- .event = "Drag",
- .action = "Resize",
- }, {
- .context = "BLCorner",
+ .context = "Border",
.button = "Left",
.event = "Drag",
.action = "Resize",
LAB_SSD_PART_RIGHT,
LAB_SSD_PART_BOTTOM,
LAB_SSD_PART_LEFT,
+ LAB_SSD_PART_BORDER,
LAB_SSD_CLIENT,
LAB_SSD_FRAME,
return LAB_SSD_PART_CORNER_BOTTOM_RIGHT;
} else if (!strcasecmp(str, "BLCorner")) {
return LAB_SSD_PART_CORNER_BOTTOM_LEFT;
+ } else if (!strcasecmp(str, "Border")) {
+ return LAB_SSD_PART_BORDER;
} else if (!strcasecmp(str, "Top")) {
return LAB_SSD_PART_TOP;
} else if (!strcasecmp(str, "Right")) {
return candidate >= LAB_SSD_BUTTON_CLOSE
&& candidate <= LAB_SSD_CLIENT;
}
+ if (whole == LAB_SSD_PART_BORDER) {
+ return candidate >= LAB_SSD_PART_CORNER_TOP_LEFT
+ && candidate <= LAB_SSD_PART_LEFT;
+ }
if (whole == LAB_SSD_PART_TOP) {
return candidate == LAB_SSD_PART_CORNER_TOP_LEFT
|| candidate == LAB_SSD_PART_CORNER_TOP_RIGHT;