mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
Basic support for Move action
- Add Move as a default mouse binding for a Titlebar Press action
- Remove the hard-coded handling in cursor_button()
Example config snippet:
<mouse>
<context name="Titlebar">
<mousebind button="Left" action="Press">
<action name="Focus"/>
<action name="Raise"/>
<action name="Move"/>
</mousebind>
</context>
</mouse>
This commit is contained in:
parent
687993370f
commit
c01d1f124c
5 changed files with 20 additions and 8 deletions
|
|
@ -465,6 +465,7 @@ load_default_key_bindings(void)
|
|||
static struct {
|
||||
const char *context, *button, *event, *action, *command;
|
||||
} mouse_combos[] = {
|
||||
{ "TitleBar", "Left", "Press", "Move", NULL },
|
||||
{ "TitleBar", "Left", "DoubleClick", "ToggleMaximize", NULL },
|
||||
{ "Close", "Left", "Click", "Close", NULL },
|
||||
{ "Iconify", "Left", "Click", "Iconify", NULL},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue