bool fit_mode,
needs_refresh,
click,
- active,
has_grown,
has_been_rendered;
+ unsigned char button; /* active button */
pointf pointer; /* pointer position in device units */
pointf oldpointer; /* old pointer position in device units */
gvevent_find_current_obj(job, pointer);
gvevent_select_current_obj(job);
job->click = 1;
- job->active = button;
+ job->button = button;
job->needs_refresh = 1;
break;
case 2: /* pan */
job->click = 1;
- job->active = button;
+ job->button = button;
job->needs_refresh = 1;
break;
case 3: /* insert node or edge */
gvevent_find_current_obj(job, pointer);
job->click = 1;
- job->active = button;
+ job->button = button;
job->needs_refresh = 1;
break;
case 4:
static void gvevent_button_release(GVJ_t *job, int button, pointf pointer)
{
job->click = 0;
- job->active = 0;
+ job->button = 0;
}
static void gvevent_motion(GVJ_t * job, pointf pointer)
if (abs(dx) < EPSILON && abs(dy) < EPSILON) /* ignore motion events with no motion */
return;
- switch (job->active) {
+ switch (job->button) {
case 0: /* drag with no button - */
gvevent_find_current_obj(job, pointer);
break;