Bug 702438 - no WM_CLASS for mupdf-gl, patched freeglut
Summary: no WM_CLASS for mupdf-gl, patched freeglut
Status: UNCONFIRMED
Alias: None
Product: MuPDF
Classification: Unclassified
Component: mupdf (show other bugs)
Version: master
Hardware: PC Linux
: P4 normal
Assignee: MuPDF bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-26 21:25 UTC by hisacro
Modified: 2020-05-27 07:18 UTC (History)
1 user (show)

See Also:
Customer:
Word Size: ---


Attachments
patched fg_window_x11.c (19.54 KB, text/x-csrc)
2020-05-26 21:25 UTC, hisacro
Details
patched fg_window_x11.c (19.54 KB, patch)
2020-05-26 21:35 UTC, hisacro
Details | Diff
thirdparty/freeglut/src/x11/fg_window_x11.c (19.31 KB, patch)
2020-05-27 07:07 UTC, hisacro
Details | Diff
patched fg_window_x11.c (19.54 KB, text/x-csrc)
2020-05-27 07:12 UTC, hisacro
Details
patched fg_window_x11.c - included XSsetClassHint (19.54 KB, patch)
2020-05-27 07:18 UTC, hisacro
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description hisacro 2020-05-26 21:25:41 UTC
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
Comment 1 hisacro 2020-05-26 21:35:24 UTC
Created attachment 19251 [details]
patched fg_window_x11.c
Comment 2 hisacro 2020-05-27 07:07:10 UTC
Created attachment 19252 [details]
thirdparty/freeglut/src/x11/fg_window_x11.c
Comment 3 hisacro 2020-05-27 07:12:36 UTC
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"
Comment 4 hisacro 2020-05-27 07:18:12 UTC
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"