*/}}
瀏覽代碼

idk why the window does not refresh

YimingWu 2 天之前
父節點
當前提交
20c773aca2
共有 1 個文件被更改,包括 1 次插入0 次删除
  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));
             XSetWindowBackground(MAIN.dpy,MAIN.Progress.w,LA_COLOR3_TO_HEX(bg));
             if(MAIN.CurrentWindow) XSetTransientForHint(MAIN.dpy,MAIN.Progress.w,MAIN.CurrentWindow->win);
             if(MAIN.CurrentWindow) XSetTransientForHint(MAIN.dpy,MAIN.Progress.w,MAIN.CurrentWindow->win);
             XMapWindow(MAIN.dpy,MAIN.Progress.w);
             XMapWindow(MAIN.dpy,MAIN.Progress.w);
+            XSync(MAIN.dpy, 1); XFlush(MAIN.dpy);
 #endif
 #endif
 #ifdef _WIN32
 #ifdef _WIN32
             ShowWindow(MAIN.Progress.w, SW_NORMAL);
             ShowWindow(MAIN.Progress.w, SW_NORMAL);