summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weber <xmw@gentoo.org>2012-03-25 23:27:33 +0000
committerMichael Weber <xmw@gentoo.org>2012-03-25 23:27:33 +0000
commit2f4de0f370977f7f90dca148cc4ba217cce9c435 (patch)
treed2be57d86a86c8a93c9d5b29fc9eb9997f711983 /app-text/llpp/files
parentRevbump for latest ff-11 patchset (v0.3) (diff)
downloadgentoo-2-2f4de0f370977f7f90dca148cc4ba217cce9c435.tar.gz
gentoo-2-2f4de0f370977f7f90dca148cc4ba217cce9c435.tar.bz2
gentoo-2-2f4de0f370977f7f90dca148cc4ba217cce9c435.zip
Version bump (thanks Tim Harder, bug 409591)
(Portage version: 2.1.10.49/cvs/Linux x86_64)
Diffstat (limited to 'app-text/llpp/files')
-rw-r--r--app-text/llpp/files/llpp-11-WM_CLASS.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/app-text/llpp/files/llpp-11-WM_CLASS.patch b/app-text/llpp/files/llpp-11-WM_CLASS.patch
new file mode 100644
index 000000000000..1e767ad918fe
--- /dev/null
+++ b/app-text/llpp/files/llpp-11-WM_CLASS.patch
@@ -0,0 +1,42 @@
+--- llpp/link.c
++++ llpp/link.c
+@@ -2792,6 +2792,32 @@
+ CAMLreturn (Val_unit);
+ }
+
++#if !defined (_WIN32) && !defined (__APPLE__)
++#undef pixel
++#include <X11/X.h>
++#include <X11/Xlib.h>
++#include <X11/Xutil.h>
++#include <GL/glx.h>
++
++static void set_wm_class (void)
++{
++ Display *dpy;
++ Window win;
++ int screen;
++ XClassHint hint;
++
++ dpy = XOpenDisplay (getenv ("DISPLAY"));
++ screen = DefaultScreen (dpy);
++ hint.res_name = "llpp";
++ hint.res_class = "llpp";
++ win = glXGetCurrentDrawable ();
++ XSetClassHint (dpy, win, &hint);
++ XCloseDisplay (dpy);
++}
++#else
++#define set_wm_class()
++#endif
++
+ CAMLprim value ml_init (value pipe_v, value params_v)
+ {
+ CAMLparam2 (pipe_v, params_v);
+@@ -2852,5 +2878,6 @@
+ errx (1, "pthread_create: %s", strerror (ret));
+ }
+
++ set_wm_class ();
+ CAMLreturn (Val_unit);
+ }