summaryrefslogtreecommitdiffstats
path: root/x11vnc/rates.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11vnc/rates.c')
-rw-r--r--x11vnc/rates.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/x11vnc/rates.c b/x11vnc/rates.c
index 0af5e42..ee9ca05 100644
--- a/x11vnc/rates.c
+++ b/x11vnc/rates.c
@@ -240,6 +240,13 @@ void initialize_speeds(void) {
if (! speeds_read_rate) {
int n = 0;
double dt, timer;
+#ifdef MACOSX
+ if (macosx_console && macosx_read_opengl && fullscreen) {
+ copy_image(fullscreen, 0, 0, 0, 0);
+ usleep(10 * 1000);
+ }
+#endif
+
dtime0(&timer);
if (fullscreen) {
copy_image(fullscreen, 0, 0, 0, 0);