*/}}
Browse Source

idk why the window does not refresh

YimingWu 2 days ago
parent
commit
20c773aca2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      la_kernel.c

+ 1 - 0
la_kernel.c

@@ -1008,6 +1008,7 @@ void laShowProgress(real p1, real p2){
             XSetWindowBackground(MAIN.dpy,MAIN.Progress.w,LA_COLOR3_TO_HEX(bg));
             if(MAIN.CurrentWindow) XSetTransientForHint(MAIN.dpy,MAIN.Progress.w,MAIN.CurrentWindow->win);
             XMapWindow(MAIN.dpy,MAIN.Progress.w);
+            XSync(MAIN.dpy, 1); XFlush(MAIN.dpy);
 #endif
 #ifdef _WIN32
             ShowWindow(MAIN.Progress.w, SW_NORMAL);