stay in pause when moving forward in time
authorJulien Desfossez <julien.desfossez@efficios.com>
Tue, 24 Apr 2012 15:47:41 +0000 (11:47 -0400)
committerJulien Desfossez <julien.desfossez@efficios.com>
Tue, 24 Apr 2012 15:47:41 +0000 (11:47 -0400)
Signed-off-by: Julien Desfossez <julien.desfossez@efficios.com>
src/cursesdisplay.c

index 7db11401304c56633837f5c37b694c6493fdbf66..59e5e2f6fa8735715466e22defbdddb81f81e6c7 100644 (file)
@@ -1264,9 +1264,11 @@ void *handle_keyboard(void *p)
                        } else {
                                print_log("Manually moving forward");
                                sem_post(&timer);
-                               /* we force to resume the refresh when moving forward */
-                               if (toggle_pause > 0)
-                                       resume_display();
+                               if (toggle_pause > 0) {
+                                       sem_post(&pause_sem);
+                                       update_current_view();
+                                       sem_wait(&pause_sem);
+                               }
                        }
 
                        break;
This page took 0.025517 seconds and 4 git commands to generate.