struct mousebind *m = calloc(1, sizeof(struct mousebind));
m->context = context_from_str(context);
if (m->context != LAB_SSD_NONE) {
- wl_list_insert(&rc.mousebinds, &m->link);
+ wl_list_insert(rc.mousebinds.prev, &m->link);
}
wl_list_init(&m->actions);
return m;
bool activated_any = false;
bool activated_any_frame = false;
- wl_list_for_each_reverse(mousebind, &rc.mousebinds, link) {
+ wl_list_for_each(mousebind, &rc.mousebinds, link) {
if (ssd_part_contains(mousebind->context, view_area)
&& mousebind->button == button
&& modifiers == mousebind->modifiers) {
bool activated_any = false;
bool activated_any_frame = false;
- wl_list_for_each_reverse(mousebind, &rc.mousebinds, link) {
+ wl_list_for_each(mousebind, &rc.mousebinds, link) {
if (ssd_part_contains(mousebind->context, view_area)
&& mousebind->button == button
&& modifiers == mousebind->modifiers) {