gi->state = GD_BUTTON_PRESSED;
gi->event.type = GD_EVENT_PRESSED;
gi->event.button = button;
+ gi->event.off_borders = FALSE;
/* initialize delay counter */
pressed_delay = 0;
gi->state = GD_BUTTON_PRESSED;
gi->event.type = GD_EVENT_MOVING;
-
+ gi->event.off_borders = FALSE;
if (gi->event_mask & GD_EVENT_MOVING)
gi->callback(gi);
}
gi->state = GD_BUTTON_UNPRESSED;
gi->event.type = GD_EVENT_MOVING;
+ gi->event.off_borders = TRUE;
if (gi->event_mask & GD_EVENT_MOVING)
gi->callback(gi);