1 |
xmw 14/08/25 15:25:09 |
2 |
|
3 |
Added: llpp-20-WM_CLASS.patch |
4 |
Log: |
5 |
Version bump, prepare for upcoming USE=egl |
6 |
|
7 |
(Portage version: 2.2.12/cvs/Linux x86_64, signed Manifest commit with key 62EEF090) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 app-text/llpp/files/llpp-20-WM_CLASS.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/llpp/files/llpp-20-WM_CLASS.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/llpp/files/llpp-20-WM_CLASS.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: llpp-20-WM_CLASS.patch |
16 |
=================================================================== |
17 |
--- llpp-20/link.c |
18 |
+++ llpp-20/link.c |
19 |
@@ -4305,6 +4305,32 @@ |
20 |
} |
21 |
#endif |
22 |
|
23 |
+#if !defined (_WIN32) && !defined (__APPLE__) |
24 |
+#undef pixel |
25 |
+#include <X11/X.h> |
26 |
+#include <X11/Xlib.h> |
27 |
+#include <X11/Xutil.h> |
28 |
+#include <GL/glx.h> |
29 |
+ |
30 |
+static void set_wm_class (void) |
31 |
+{ |
32 |
+ Display *dpy; |
33 |
+ Window win; |
34 |
+ int screen; |
35 |
+ XClassHint hint; |
36 |
+ |
37 |
+ dpy = XOpenDisplay (getenv ("DISPLAY")); |
38 |
+ screen = DefaultScreen (dpy); |
39 |
+ hint.res_name = "llpp"; |
40 |
+ hint.res_class = "llpp"; |
41 |
+ win = glXGetCurrentDrawable (); |
42 |
+ XSetClassHint (dpy, win, &hint); |
43 |
+ XCloseDisplay (dpy); |
44 |
+} |
45 |
+#else |
46 |
+#define set_wm_class() |
47 |
+#endif |
48 |
+ |
49 |
CAMLprim value ml_init (value csock_v, value params_v) |
50 |
{ |
51 |
CAMLparam2 (csock_v, params_v); |
52 |
@@ -4425,5 +4451,6 @@ |
53 |
errx (1, "pthread_create: %s", strerror (ret)); |
54 |
} |
55 |
|
56 |
+ set_wm_class (); |
57 |
CAMLreturn (Val_unit); |
58 |
} |