From 907ed40fd1b1a1298e5d339f51e68df5f0b63872 Mon Sep 17 00:00:00 2001 From: waker Date: Fri, 30 Nov 2012 21:14:25 +0100 Subject: few minor optimizations --- plugins/hotkeys/hotkeys.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'plugins/hotkeys') 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 #include #include -#include "parser.h" +#ifdef __linux__ +#include +#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) { -- cgit v1.2.3