summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Weber <xmw@gentoo.org>2017-04-28 22:51:14 +0200
committerMichael Weber <xmw@gentoo.org>2017-04-28 22:51:31 +0200
commita5d62a3560a1d960c641722879d33e94ceb28926 (patch)
treeff519657dc6ec95483c4c22caea24d9f10064c6a /app-text/llpp/files/llpp-26b-WM_CLASS.patch
parentmedia-gfx/graphite2: Remove old (diff)
downloadgentoo-a5d62a3560a1d960c641722879d33e94ceb28926.tar.gz
gentoo-a5d62a3560a1d960c641722879d33e94ceb28926.tar.bz2
gentoo-a5d62a3560a1d960c641722879d33e94ceb28926.zip
app-text/llpp: Version bump.
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Diffstat (limited to 'app-text/llpp/files/llpp-26b-WM_CLASS.patch')
-rw-r--r--app-text/llpp/files/llpp-26b-WM_CLASS.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/app-text/llpp/files/llpp-26b-WM_CLASS.patch b/app-text/llpp/files/llpp-26b-WM_CLASS.patch
new file mode 100644
index 000000000000..e99d9a4e4e5a
--- /dev/null
+++ b/app-text/llpp/files/llpp-26b-WM_CLASS.patch
@@ -0,0 +1,41 @@
+--- llpp-26b/link.c
++++ llpp-26b/link.c
+@@ -4392,6 +4392,31 @@
+ return caml_copy_string (FZ_VERSION);
+ }
+
++#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;
++ XClassHint hint;
++
++ dpy = XOpenDisplay (getenv ("DISPLAY"));
++ 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 void ml_init (value csock_v, value params_v)
+ {
+ CAMLparam2 (csock_v, params_v);
+@@ -4460,5 +4485,6 @@
+ errx (1, "pthread_create: %s", strerror (ret));
+ }
+
++ set_wm_class ();
+ CAMLreturn0;
+ }