diff options
author | emersion <contact@emersion.fr> | 2017-09-28 12:38:41 +0200 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2017-09-28 12:38:41 +0200 |
commit | 27ca8eaced73ee6478c42c2b4083c5fe81fc8ff8 (patch) | |
tree | b2dbad0b3f94755e7f24edb739511781721c9dca | |
parent | 7cf4ee128e278108b0326344be01ded93ce7148b (diff) |
Fix typo: s/transcient/transient/
-rw-r--r-- | include/wlr/types/wlr_wl_shell.h | 2 | ||||
-rw-r--r-- | types/wlr_wl_shell.c | 16 |
2 files changed, 9 insertions, 9 deletions
diff --git a/include/wlr/types/wlr_wl_shell.h b/include/wlr/types/wlr_wl_shell.h index 11d30d95..60398629 100644 --- a/include/wlr/types/wlr_wl_shell.h +++ b/include/wlr/types/wlr_wl_shell.h @@ -32,7 +32,7 @@ struct wlr_wl_shell_surface_popup_state { enum wlr_wl_shell_surface_role { WLR_WL_SHELL_SURFACE_ROLE_NONE, WLR_WL_SHELL_SURFACE_ROLE_TOPLEVEL, - WLR_WL_SHELL_SURFACE_ROLE_TRANSCIENT, + WLR_WL_SHELL_SURFACE_ROLE_TRANSIENT, WLR_WL_SHELL_SURFACE_ROLE_POPUP, }; diff --git a/types/wlr_wl_shell.c b/types/wlr_wl_shell.c index 99371fb4..5c78deff 100644 --- a/types/wlr_wl_shell.c +++ b/types/wlr_wl_shell.c @@ -114,7 +114,7 @@ static void shell_surface_set_transient(struct wl_client *client, free(surface->transient_state); surface->transient_state = state; - surface->role = WLR_WL_SHELL_SURFACE_ROLE_TRANSCIENT; + surface->role = WLR_WL_SHELL_SURFACE_ROLE_TRANSIENT; wl_signal_emit(&surface->events.set_role, surface); } @@ -167,17 +167,17 @@ static void shell_surface_set_popup(struct wl_client *client, return; } - struct wlr_wl_shell_surface_transient_state *transcient_state = + struct wlr_wl_shell_surface_transient_state *transient_state = calloc(1, sizeof(struct wlr_wl_shell_surface_transient_state)); - if (transcient_state == NULL) { + if (transient_state == NULL) { wl_client_post_no_memory(client); return; } - transcient_state->parent = parent; - transcient_state->x = x; - transcient_state->y = y; - transcient_state->flags = flags; + transient_state->parent = parent; + transient_state->x = x; + transient_state->y = y; + transient_state->flags = flags; struct wlr_wl_shell_surface_popup_state *popup_state = calloc(1, sizeof(struct wlr_wl_shell_surface_transient_state)); @@ -190,7 +190,7 @@ static void shell_surface_set_popup(struct wl_client *client, popup_state->serial = serial; free(surface->transient_state); - surface->transient_state = transcient_state; + surface->transient_state = transient_state; free(surface->popup_state); surface->popup_state = popup_state; |