* [gentoo-commits] gentoo-x86 commit in app-text/llpp/files: llpp-20-WM_CLASS.patch
@ 2014-08-25 15:25 Michael Weber (xmw)
0 siblings, 0 replies; only message in thread
From: Michael Weber (xmw) @ 2014-08-25 15:25 UTC (permalink / raw
To: gentoo-commits
xmw 14/08/25 15:25:09
Added: llpp-20-WM_CLASS.patch
Log:
Version bump, prepare for upcoming USE=egl
(Portage version: 2.2.12/cvs/Linux x86_64, signed Manifest commit with key 62EEF090)
Revision Changes Path
1.1 app-text/llpp/files/llpp-20-WM_CLASS.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-text/llpp/files/llpp-20-WM_CLASS.patch?rev=1.1&view=markup
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
Index: llpp-20-WM_CLASS.patch
===================================================================
--- llpp-20/link.c
+++ llpp-20/link.c
@@ -4305,6 +4305,32 @@
}
#endif
+#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 csock_v, value params_v)
{
CAMLparam2 (csock_v, params_v);
@@ -4425,5 +4451,6 @@
errx (1, "pthread_create: %s", strerror (ret));
}
+ set_wm_class ();
CAMLreturn (Val_unit);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-08-25 15:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-25 15:25 [gentoo-commits] gentoo-x86 commit in app-text/llpp/files: llpp-20-WM_CLASS.patch Michael Weber (xmw)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox