Fix use of removed functions in comm_in
This commit is contained in:
parent
bb9eae49c2
commit
9b164de0cf
BIN
.cache/clangd/index/background-image.c.A699A680CE5AF112.idx
Normal file
BIN
.cache/clangd/index/background-image.c.A699A680CE5AF112.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/background-image.h.4A580C6582E21C1F.idx
Normal file
BIN
.cache/clangd/index/background-image.h.4A580C6582E21C1F.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/cairo.c.E344436F853F63EB.idx
Normal file
BIN
.cache/clangd/index/cairo.c.E344436F853F63EB.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/cairo.h.342E0AF4FEE3727B.idx
Normal file
BIN
.cache/clangd/index/cairo.h.342E0AF4FEE3727B.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/comm.c.73286785A4D170DD.idx
Normal file
BIN
.cache/clangd/index/comm.c.73286785A4D170DD.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/comm.h.8C272A0376851762.idx
Normal file
BIN
.cache/clangd/index/comm.h.8C272A0376851762.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/log.c.05ED616AC36DC369.idx
Normal file
BIN
.cache/clangd/index/log.c.05ED616AC36DC369.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/log.h.163B53264720A899.idx
Normal file
BIN
.cache/clangd/index/log.h.163B53264720A899.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/loop.c.329BF8B535D2F2D3.idx
Normal file
BIN
.cache/clangd/index/loop.c.329BF8B535D2F2D3.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/loop.h.C9AD589E1F926DF5.idx
Normal file
BIN
.cache/clangd/index/loop.h.C9AD589E1F926DF5.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/main.c.AF20778E2016D176.idx
Normal file
BIN
.cache/clangd/index/main.c.AF20778E2016D176.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/pam.c.0E41B2E6C8458115.idx
Normal file
BIN
.cache/clangd/index/pam.c.0E41B2E6C8458115.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/password-buffer.c.C44E0D22E8158DF6.idx
Normal file
BIN
.cache/clangd/index/password-buffer.c.C44E0D22E8158DF6.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/password-buffer.h.0E433B83B52CDA60.idx
Normal file
BIN
.cache/clangd/index/password-buffer.h.0E433B83B52CDA60.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/password.c.4F88FCB3E461FF04.idx
Normal file
BIN
.cache/clangd/index/password.c.4F88FCB3E461FF04.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/pool-buffer.c.22AB6EED079D870E.idx
Normal file
BIN
.cache/clangd/index/pool-buffer.c.22AB6EED079D870E.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/pool-buffer.h.C14AF81A129F5DB4.idx
Normal file
BIN
.cache/clangd/index/pool-buffer.h.C14AF81A129F5DB4.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/render.c.13EB6E5145CB95B7.idx
Normal file
BIN
.cache/clangd/index/render.c.13EB6E5145CB95B7.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/seat.c.38F333AB815B9F70.idx
Normal file
BIN
.cache/clangd/index/seat.c.38F333AB815B9F70.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/seat.h.CD2AD8DC89290134.idx
Normal file
BIN
.cache/clangd/index/seat.h.CD2AD8DC89290134.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/swaylock.h.95A06467DB74471E.idx
Normal file
BIN
.cache/clangd/index/swaylock.h.95A06467DB74471E.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/unicode.c.413FCBB14E30CA31.idx
Normal file
BIN
.cache/clangd/index/unicode.c.413FCBB14E30CA31.idx
Normal file
Binary file not shown.
BIN
.cache/clangd/index/unicode.h.536734CA745EA333.idx
Normal file
BIN
.cache/clangd/index/unicode.h.536734CA745EA333.idx
Normal file
Binary file not shown.
@ -141,6 +141,7 @@ void render(struct swaylock_surface *surface);
|
|||||||
void damage_state(struct swaylock_state *state);
|
void damage_state(struct swaylock_state *state);
|
||||||
void clear_password_buffer(struct swaylock_password *pw);
|
void clear_password_buffer(struct swaylock_password *pw);
|
||||||
void schedule_auth_idle(struct swaylock_state *state);
|
void schedule_auth_idle(struct swaylock_state *state);
|
||||||
|
void schedule_auth_idle_msg(struct swaylock_state *state);
|
||||||
|
|
||||||
void initialize_pw_backend(int argc, char **argv);
|
void initialize_pw_backend(int argc, char **argv);
|
||||||
void run_pw_backend_child(void);
|
void run_pw_backend_child(void);
|
||||||
|
8
main.c
8
main.c
@ -1049,18 +1049,14 @@ static void comm_in(int fd, short mask, void *data) {
|
|||||||
damage_state(&state);
|
damage_state(&state);
|
||||||
} else if (reply.kind == REPLY_CONTINUE) {
|
} else if (reply.kind == REPLY_CONTINUE) {
|
||||||
state.auth_state = AUTH_STATE_IDLE;
|
state.auth_state = AUTH_STATE_IDLE;
|
||||||
schedule_indicator_clear(&state);
|
schedule_auth_idle(&state);
|
||||||
damage_state(&state);
|
damage_state(&state);
|
||||||
} else if (reply.kind == REPLY_MSG) {
|
} else if (reply.kind == REPLY_MSG) {
|
||||||
state.auth_state = AUTH_STATE_IDLE_MSG;
|
state.auth_state = AUTH_STATE_IDLE_MSG;
|
||||||
memcpy(&state.pam_msg[0], &reply.pam_msg[0], 256);
|
memcpy(&state.pam_msg[0], &reply.pam_msg[0], 256);
|
||||||
schedule_indicator_clear(&state);
|
schedule_auth_idle_msg(&state);
|
||||||
damage_state(&state);
|
damage_state(&state);
|
||||||
}
|
}
|
||||||
struct swaylock_surface *surface;
|
|
||||||
wl_list_for_each(surface, &state.surfaces, link) {
|
|
||||||
render_frame(surface);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void term_in(int fd, short mask, void *data) {
|
static void term_in(int fd, short mask, void *data) {
|
||||||
|
15
password.c
15
password.c
@ -60,6 +60,13 @@ static void set_auth_idle(void *data) {
|
|||||||
damage_state(state);
|
damage_state(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void set_auth_idle_msg(void *data) {
|
||||||
|
struct swaylock_state *state = data;
|
||||||
|
state->auth_idle_timer = NULL;
|
||||||
|
state->auth_state = AUTH_STATE_IDLE_MSG;
|
||||||
|
damage_state(state);
|
||||||
|
}
|
||||||
|
|
||||||
static void schedule_input_idle(struct swaylock_state *state) {
|
static void schedule_input_idle(struct swaylock_state *state) {
|
||||||
if (state->input_idle_timer) {
|
if (state->input_idle_timer) {
|
||||||
loop_remove_timer(state->eventloop, state->input_idle_timer);
|
loop_remove_timer(state->eventloop, state->input_idle_timer);
|
||||||
@ -83,6 +90,14 @@ void schedule_auth_idle(struct swaylock_state *state) {
|
|||||||
state->eventloop, 3000, set_auth_idle, state);
|
state->eventloop, 3000, set_auth_idle, state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void schedule_auth_idle_msg(struct swaylock_state *state) {
|
||||||
|
if (state->auth_idle_timer) {
|
||||||
|
loop_remove_timer(state->eventloop, state->auth_idle_timer);
|
||||||
|
}
|
||||||
|
state->auth_idle_timer = loop_add_timer(
|
||||||
|
state->eventloop, 3000, set_auth_idle_msg, state);
|
||||||
|
}
|
||||||
|
|
||||||
static void clear_password(void *data) {
|
static void clear_password(void *data) {
|
||||||
struct swaylock_state *state = data;
|
struct swaylock_state *state = data;
|
||||||
state->clear_password_timer = NULL;
|
state->clear_password_timer = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user