aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/wlr/types/wlr_wl_shell.h2
-rw-r--r--types/wlr_wl_shell.c16
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;