diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-10-24 07:28:04 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-10-24 07:57:36 -0400 |
commit | 1dbe31493708790f6fafb4c9da8d24cbb3fa07b9 (patch) | |
tree | 42e7dbbe8b77403aa00983befc256f7b7a7742ca /xwayland | |
parent | 6fcac087fe1d7b7fa3cd0628a6b7818d26222678 (diff) | |
parent | 1b7918f50e8b22cbaba978c695b7cc5921125c55 (diff) |
Merge branch 'master' into feature/data-device-selection
Diffstat (limited to 'xwayland')
-rw-r--r-- | xwayland/xwm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xwayland/xwm.c b/xwayland/xwm.c index fd70fe4c..935fcd96 100644 --- a/xwayland/xwm.c +++ b/xwayland/xwm.c @@ -72,7 +72,7 @@ static struct wlr_xwayland_surface *wlr_xwayland_surface_create( surface->height = height; surface->override_redirect = override_redirect; wl_list_insert(&xwm->new_surfaces, &surface->link); - surface->state = list_create(); + surface->state = wlr_list_create(); wl_signal_init(&surface->events.destroy); wl_signal_init(&surface->events.request_configure); wl_signal_init(&surface->events.set_class); @@ -93,7 +93,7 @@ static void wlr_xwayland_surface_destroy(struct wlr_xwayland_surface *surface) { free(surface->title); free(surface->class); free(surface->instance); - list_free(surface->state); + wlr_list_free(surface->state); free(surface->window_type); free(surface->protocols); free(surface->hints); @@ -200,7 +200,7 @@ static void handle_surface_state(struct wlr_xwm *xwm, if (action == NET_WM_STATE_REMOVE || action == NET_WM_STATE_TOGGLE) { free(surface->state->items[j]); - list_del(surface->state, j); + wlr_list_del(surface->state, j); } break; } @@ -210,7 +210,7 @@ static void handle_surface_state(struct wlr_xwm *xwm, action == NET_WM_STATE_TOGGLE)) { xcb_atom_t *atom_ptr = malloc(sizeof(xcb_atom_t)); *atom_ptr = atom; - list_add(surface->state, atom_ptr); + wlr_list_add(surface->state, atom_ptr); } } |