diff options
author | emersion <contact@emersion.fr> | 2018-01-26 22:41:19 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-01-26 22:41:19 +0100 |
commit | a011a1cb075bed2235162f1af7e88d0ee534acad (patch) | |
tree | cb50806d9a495458a06aeaeeeafbb326b13122a2 | |
parent | 8d58ed502b6022e6a5e99bca98f6c45cc6deba0a (diff) |
screenshooter: request a buffer swap
-rw-r--r-- | types/wlr_screenshooter.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/types/wlr_screenshooter.c b/types/wlr_screenshooter.c index e24b85f1..0ee01519 100644 --- a/types/wlr_screenshooter.c +++ b/types/wlr_screenshooter.c @@ -138,6 +138,10 @@ static void screenshooter_shoot(struct wl_client *client, state->screenshot = screenshot; state->frame_listener.notify = output_frame_notify; wl_signal_add(&output->events.swap_buffers, &state->frame_listener); + + // Schedule a buffer swap + output->needs_swap = true; + wlr_output_schedule_frame(output); } static struct orbital_screenshooter_interface screenshooter_impl = { |