Created attachment 19250 [details] patched fg_window_x11.c added XSetClassHint call to thirdparty/freeglut/src/x11/fg_window_x11.c so WM_CLASS is assigned for mupdf-gl
Created attachment 19251 [details] patched fg_window_x11.c
Created attachment 19252 [details] thirdparty/freeglut/src/x11/fg_window_x11.c
Created attachment 19253 [details] patched fg_window_x11.c diff fg_window_x11.c fg_window_x11_patch.c 150a151 > XClassHint *classhint; 377a379,385 > > classhint = XAllocClassHint(); > classhint->res_name = "mupdf"; > classhint->res_class = "MuPDF"; > > XSetClassHint( fgDisplay.pDisplay.Display, window->Window.Handle, classhint ); > XFree( classhint ); this sets WM_CLASS(STRING) = "mupdf", "MuPDF"
Created attachment 19254 [details] patched fg_window_x11.c - included XSsetClassHint diff fg_window_x11.c fg_window_x11_patch.c 150a151 > XClassHint *classhint; 377a379,385 > > classhint = XAllocClassHint(); > classhint->res_name = "mupdf"; > classhint->res_class = "MuPDF"; > > XSetClassHint( fgDisplay.pDisplay.Display, window->Window.Handle, classhint ); > XFree( classhint ); this sets WM_CLASS(STRING) = "mupdf", "MuPDF"