diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-02-08 07:40:41 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2016-02-08 07:40:41 -0500 |
commit | 91d6113d4ad15e38308a795313da92b0ec249bcf (patch) | |
tree | 6f0227ce0465b90443355672f9fabb58ccbe5ca8 /sway/handlers.c | |
parent | be6455b295ed5e4ac6c6a3dc756d154c3c908e19 (diff) | |
parent | 6f7cbf2eaca42c12af9bd4a8c3cc36dc6b180517 (diff) |
Merge pull request #488 from mikkeloscar/get-pixels
Replace deprecated function wlc_output_get_pixels.
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) { } } +static void handle_output_post_render(wlc_handle output) { + ipc_get_pixels(output); +} + static void handle_output_resolution_change(wlc_handle output, const struct wlc_size *from, const struct wlc_size *to) { sway_log(L_DEBUG, "Output %u resolution changed to %d x %d", (unsigned int)output, to->w, to->h); swayc_t *c = swayc_by_handle(output); @@ -675,7 +679,8 @@ struct wlc_interface interface = { .resolution = handle_output_resolution_change, .focus = handle_output_focused, .render = { - .pre = handle_output_pre_render + .pre = handle_output_pre_render, + .post = handle_output_post_render } }, .view = { |