mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 06:35:58 +01:00
Fix typo: s/transcient/transient/
This commit is contained in:
parent
7cf4ee128e
commit
27ca8eaced
2 changed files with 9 additions and 9 deletions
|
@ -32,7 +32,7 @@ struct wlr_wl_shell_surface_popup_state {
|
||||||
enum wlr_wl_shell_surface_role {
|
enum wlr_wl_shell_surface_role {
|
||||||
WLR_WL_SHELL_SURFACE_ROLE_NONE,
|
WLR_WL_SHELL_SURFACE_ROLE_NONE,
|
||||||
WLR_WL_SHELL_SURFACE_ROLE_TOPLEVEL,
|
WLR_WL_SHELL_SURFACE_ROLE_TOPLEVEL,
|
||||||
WLR_WL_SHELL_SURFACE_ROLE_TRANSCIENT,
|
WLR_WL_SHELL_SURFACE_ROLE_TRANSIENT,
|
||||||
WLR_WL_SHELL_SURFACE_ROLE_POPUP,
|
WLR_WL_SHELL_SURFACE_ROLE_POPUP,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -114,7 +114,7 @@ static void shell_surface_set_transient(struct wl_client *client,
|
||||||
free(surface->transient_state);
|
free(surface->transient_state);
|
||||||
surface->transient_state = 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);
|
wl_signal_emit(&surface->events.set_role, surface);
|
||||||
}
|
}
|
||||||
|
@ -167,17 +167,17 @@ static void shell_surface_set_popup(struct wl_client *client,
|
||||||
return;
|
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));
|
calloc(1, sizeof(struct wlr_wl_shell_surface_transient_state));
|
||||||
if (transcient_state == NULL) {
|
if (transient_state == NULL) {
|
||||||
wl_client_post_no_memory(client);
|
wl_client_post_no_memory(client);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
transcient_state->parent = parent;
|
transient_state->parent = parent;
|
||||||
transcient_state->x = x;
|
transient_state->x = x;
|
||||||
transcient_state->y = y;
|
transient_state->y = y;
|
||||||
transcient_state->flags = flags;
|
transient_state->flags = flags;
|
||||||
|
|
||||||
struct wlr_wl_shell_surface_popup_state *popup_state =
|
struct wlr_wl_shell_surface_popup_state *popup_state =
|
||||||
calloc(1, sizeof(struct wlr_wl_shell_surface_transient_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;
|
popup_state->serial = serial;
|
||||||
|
|
||||||
free(surface->transient_state);
|
free(surface->transient_state);
|
||||||
surface->transient_state = transcient_state;
|
surface->transient_state = transient_state;
|
||||||
|
|
||||||
free(surface->popup_state);
|
free(surface->popup_state);
|
||||||
surface->popup_state = popup_state;
|
surface->popup_state = popup_state;
|
||||||
|
|
Loading…
Reference in a new issue