diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-08-17 16:15:49 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-08-17 21:05:13 -0400 |
commit | 128f06405bf20358ae4a685d3df9e471ad693cb3 (patch) | |
tree | 53c616984335e66be4981c171a97daaba38bd008 | |
parent | d9ebf0615a2f548a66abc590dbca9ae395cdfd0e (diff) |
vt change bugfix
-rw-r--r-- | examples/output-layout.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/output-layout.c b/examples/output-layout.c index 13abb6a1..41b79596 100644 --- a/examples/output-layout.c +++ b/examples/output-layout.c @@ -75,6 +75,12 @@ static void handle_output_frame(struct output_state *output, struct timespec *ts // how many seconds have passed since the last frame float seconds = ms / 1000.0f; + if (seconds > 0.1f) { + // XXX when we switch vt, the rendering loop stops so try to detect + // that and pause when it happens. + seconds = 0.0f; + } + // check for collisions and bounce bool ur_collision = !wlr_output_layout_output_at(sample->layout, sample->x_offs + 128, sample->y_offs); |