mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
Forgot to rename these
This commit is contained in:
parent
799f8b95b7
commit
c5fff08f8a
13 changed files with 54 additions and 54 deletions
|
|
@ -213,7 +213,7 @@ static void handle_touch_up(struct wl_listener *listener, void *data) {
|
|||
for (size_t i = 0; i < sample->touch_points->length; ++i) {
|
||||
struct touch_point *point = sample->touch_points->items[i];
|
||||
if (point->slot == event->slot) {
|
||||
list_del(sample->touch_points, i);
|
||||
wlr_list_del(sample->touch_points, i);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
@ -228,7 +228,7 @@ static void handle_touch_down(struct wl_listener *listener, void *data) {
|
|||
point->slot = event->slot;
|
||||
point->x = event->x_mm / event->width_mm;
|
||||
point->y = event->y_mm / event->height_mm;
|
||||
if (list_add(sample->touch_points, point) == -1) {
|
||||
if (wlr_list_add(sample->touch_points, point) == -1) {
|
||||
free(point);
|
||||
}
|
||||
|
||||
|
|
@ -270,7 +270,7 @@ int main(int argc, char *argv[]) {
|
|||
struct sample_state state = {
|
||||
.default_color = { 0.25f, 0.25f, 0.25f, 1 },
|
||||
.clear_color = { 0.25f, 0.25f, 0.25f, 1 },
|
||||
.touch_points = list_create(),
|
||||
.touch_points = wlr_list_create(),
|
||||
};
|
||||
|
||||
state.config = parse_args(argc, argv);
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ static void handle_touch_down(struct touch_state *tstate, int32_t slot,
|
|||
point->slot = slot;
|
||||
point->x = x / width;
|
||||
point->y = y / height;
|
||||
if (list_add(sample->touch_points, point) == -1) {
|
||||
if (wlr_list_add(sample->touch_points, point) == -1) {
|
||||
free(point);
|
||||
}
|
||||
}
|
||||
|
|
@ -75,7 +75,7 @@ static void handle_touch_up(struct touch_state *tstate, int32_t slot) {
|
|||
for (size_t i = 0; i < sample->touch_points->length; ++i) {
|
||||
struct touch_point *point = sample->touch_points->items[i];
|
||||
if (point->slot == slot) {
|
||||
list_del(sample->touch_points, i);
|
||||
wlr_list_del(sample->touch_points, i);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
@ -96,7 +96,7 @@ static void handle_touch_motion(struct touch_state *tstate, int32_t slot,
|
|||
|
||||
int main(int argc, char *argv[]) {
|
||||
struct sample_state state = {
|
||||
.touch_points = list_create()
|
||||
.touch_points = wlr_list_create()
|
||||
};
|
||||
struct compositor_state compositor = { 0,
|
||||
.data = &state,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue