summaryrefslogtreecommitdiff
path: root/plugins/hotkeys
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2012-11-30 21:14:25 +0100
committerGravatar waker <wakeroid@gmail.com>2012-11-30 21:14:25 +0100
commit907ed40fd1b1a1298e5d339f51e68df5f0b63872 (patch)
treeb8802e5191a621b11c108ee322db00407b03ab23 /plugins/hotkeys
parentbe472188fde7aa235c426486c42ae4e2278c9093 (diff)
few minor optimizations
Diffstat (limited to 'plugins/hotkeys')
-rw-r--r--plugins/hotkeys/hotkeys.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/hotkeys/hotkeys.c b/plugins/hotkeys/hotkeys.c
index b2c9f750..a7a1096c 100644
--- a/plugins/hotkeys/hotkeys.c
+++ b/plugins/hotkeys/hotkeys.c
@@ -22,8 +22,11 @@
#include <unistd.h>
#include <X11/Xlib.h>
#include <ctype.h>
-#include "parser.h"
+#ifdef __linux__
+#include <sys/prctl.h>
+#endif
+#include "parser.h"
#include "hotkeys.h"
#include "../../deadbeef.h"
#include "actionhandlers.h"
@@ -388,6 +391,9 @@ x_err_handler (Display *d, XErrorEvent *evt) {
static void
hotkeys_event_loop (void *unused) {
int i;
+#ifdef __linux__
+ prctl (PR_SET_NAME, "deadbeef-hotkeys", 0, 0, 0, 0);
+#endif
while (!finished) {
if (need_reset) {