e_bindings_signal_add(eb->context, eb->signal, eb->source, eb->modifiers,
eb->any_mod, eb->action, eb->params);
/* FIXME: Can this be solved in a generic way? */
-#if 0
+ /* FIXME: Only change cursor if action is allowed! */
if ((!strcmp(eb->action, "window_resize")) &&
(!strncmp(eb->signal, "mouse,down,", 11)) &&
(!strncmp(eb->source, "resize_", 7)))
{
+ char params[32];
+ snprintf(params, sizeof(params), "resize_%s", eb->params);
e_bindings_signal_add(eb->context, "mouse,in", eb->source, eb->modifiers,
- eb->any_mod, "pointer_push", eb->params);
+ eb->any_mod, "pointer_push", params);
e_bindings_signal_add(eb->context, "mouse,out", eb->source, eb->modifiers,
- eb->any_mod, "pointer_pop", eb->params);
+ eb->any_mod, "pointer_pop", params);
}
-#endif
}
for (l = e_config->wheel_bindings; l; l = l->next)
((!type) || (!strcmp(stack->type, type))))
{
p->stack = evas_list_remove_list(p->stack, l2);
+ if (type) break;
}
}
if (!cursor) printf("X Cursor for %s is missing\n", type);
ecore_x_window_cursor_set(p->win, cursor);
}
+#if 0
else if (!strcmp(type, "resize"))
{
cursor = ecore_x_cursor_shape_get(ECORE_X_CURSOR_SIZING);
if (!cursor) printf("X Cursor for %s is missing\n", type);
ecore_x_window_cursor_set(p->win, cursor);
}
+#endif
else if (!strcmp(type, "resize_tl"))
{
cursor = ecore_x_cursor_shape_get(ECORE_X_CURSOR_TOP_LEFT_CORNER);