diff options
Diffstat (limited to 'sway/handlers.c')
-rw-r--r-- | sway/handlers.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sway/handlers.c b/sway/handlers.c index bb0c68e8..d3fbdc0f 100644 --- a/sway/handlers.c +++ b/sway/handlers.c | |||
@@ -150,6 +150,10 @@ static void handle_output_pre_render(wlc_handle output) { | |||
150 | } | 150 | } |
151 | } | 151 | } |
152 | 152 | ||
153 | static void handle_output_post_render(wlc_handle output) { | ||
154 | ipc_get_pixels(output); | ||
155 | } | ||
156 | |||
153 | static void handle_output_resolution_change(wlc_handle output, const struct wlc_size *from, const struct wlc_size *to) { | 157 | static void handle_output_resolution_change(wlc_handle output, const struct wlc_size *from, const struct wlc_size *to) { |
154 | sway_log(L_DEBUG, "Output %u resolution changed to %d x %d", (unsigned int)output, to->w, to->h); | 158 | sway_log(L_DEBUG, "Output %u resolution changed to %d x %d", (unsigned int)output, to->w, to->h); |
155 | swayc_t *c = swayc_by_handle(output); | 159 | swayc_t *c = swayc_by_handle(output); |
@@ -675,7 +679,8 @@ struct wlc_interface interface = { | |||
675 | .resolution = handle_output_resolution_change, | 679 | .resolution = handle_output_resolution_change, |
676 | .focus = handle_output_focused, | 680 | .focus = handle_output_focused, |
677 | .render = { | 681 | .render = { |
678 | .pre = handle_output_pre_render | 682 | .pre = handle_output_pre_render, |
683 | .post = handle_output_post_render | ||
679 | } | 684 | } |
680 | }, | 685 | }, |
681 | .view = { | 686 | .view = { |