fix output resolution callback
This commit is contained in:
parent
128f06405b
commit
e0b409760d
|
@ -433,7 +433,7 @@ static void output_resolution_notify(struct wl_listener *listener, void *data) {
|
||||||
struct compositor_state *compositor = output->compositor;
|
struct compositor_state *compositor = output->compositor;
|
||||||
|
|
||||||
if (compositor->output_resolution_cb) {
|
if (compositor->output_resolution_cb) {
|
||||||
compositor->output_resolution_cb(output);
|
compositor->output_resolution_cb(compositor, output);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,6 +16,7 @@ struct output_state {
|
||||||
struct compositor_state *compositor;
|
struct compositor_state *compositor;
|
||||||
struct wlr_output *output;
|
struct wlr_output *output;
|
||||||
struct wl_listener frame;
|
struct wl_listener frame;
|
||||||
|
struct wl_listener resolution;
|
||||||
struct timespec last_frame;
|
struct timespec last_frame;
|
||||||
struct wl_list link;
|
struct wl_list link;
|
||||||
void *data;
|
void *data;
|
||||||
|
@ -78,6 +79,8 @@ struct compositor_state {
|
||||||
void (*keyboard_add_cb)(struct keyboard_state *s);
|
void (*keyboard_add_cb)(struct keyboard_state *s);
|
||||||
void (*output_frame_cb)(struct output_state *s, struct timespec *ts);
|
void (*output_frame_cb)(struct output_state *s, struct timespec *ts);
|
||||||
void (*output_remove_cb)(struct output_state *s);
|
void (*output_remove_cb)(struct output_state *s);
|
||||||
|
void (*output_resolution_cb)(struct compositor_state *compositor,
|
||||||
|
struct output_state *s);
|
||||||
void (*keyboard_remove_cb)(struct keyboard_state *s);
|
void (*keyboard_remove_cb)(struct keyboard_state *s);
|
||||||
void (*keyboard_key_cb)(struct keyboard_state *s, uint32_t keycode,
|
void (*keyboard_key_cb)(struct keyboard_state *s, uint32_t keycode,
|
||||||
xkb_keysym_t sym, enum wlr_key_state key_state);
|
xkb_keysym_t sym, enum wlr_key_state key_state);
|
||||||
|
|
Loading…
Reference in New Issue