- DoubleClick: Two presses within the doubleClickTime.
- Drag: Pressing the button within the context, then moving the cursor
-*<mouse><default />*
- Load default mousebinds. This is an addition to the openbox
- specification and provides a way to keep config files simpler whilst
- allowing user specific binds. Note that if no rc.xml is found, or if no
- <mouse><mousebind> entries exist, the same default mousebinds will be
- loaded even if the <default /> element is not provided.
-
# LIBINPUT
*<libinput><device category="">*
};
static void load_default_key_bindings(void);
-static void load_default_mouse_bindings(void);
static void
fill_keybind(char *nodename, char *content)
if (!strcmp(nodename, "default.keyboard")) {
load_default_key_bindings();
return;
- } else if (!strcmp(nodename, "default.mouse")) {
- load_default_mouse_bindings();
- return;
}
/* handle the rest */
bool activated_any = false;
bool activated_any_frame = false;
- wl_list_for_each(mousebind, &rc.mousebinds, link) {
+ wl_list_for_each_reverse(mousebind, &rc.mousebinds, link) {
if (ssd_part_contains(mousebind->context, view_area)
&& mousebind->button == button
&& modifiers == mousebind->modifiers) {
activated_any = true;
activated_any_frame |= mousebind->context == LAB_SSD_FRAME;
actions_run(view, server, &mousebind->actions, resize_edges);
- break;
}
}
return activated_any && activated_any_frame;