diff options
author | Matthieu Herrb <matthieu@herrb.eu> | 2021-08-03 08:37:00 +0200 |
---|---|---|
committer | Matthieu Herrb <matthieu@herrb.eu> | 2021-08-03 08:37:00 +0200 |
commit | 01080057a35b54abce715884ae9fa1938b78d497 (patch) | |
tree | c531544b688e7bc1af8ff5c3a8d7cd15f6268526 | |
parent | b27891d9d6de2b459e81421a0cd93268f2af35b1 (diff) |
Remove unused function window_get_pid()
Signed-off-by: Matthieu Herrb <matthieu@herrb.eu>
-rw-r--r-- | xrestop.c | 25 |
1 files changed, 0 insertions, 25 deletions
@@ -160,31 +160,6 @@ untrap_errors(void) /* Misc util funcs */ -static pid_t -window_get_pid(XResTopApp *app, Window win) -{ - Atom type; - unsigned long bytes_after, n_items; - long *data = NULL; - pid_t result = -1; - int format; - - if (XGetWindowProperty (app->dpy, win, - app->atoms[ATOM_NET_WM_PID], - 0, 2L, - False, XA_CARDINAL, - &type, &format, &n_items, - &bytes_after, (unsigned char **)&data) == Success - && n_items && data != NULL) - { - result = *data; - } - - XFree(data); - - return result; -} - static char* window_get_utf8_name(XResTopApp *app, Window win) { |