all repos — tint2 @ f5f8423364a13a455c18e32d9bb96e4c4c42e68d

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

panel: Set _NET_WM_PID (fixes issue #651)
o9000 mrovi9000@gmail.com
commit

f5f8423364a13a455c18e32d9bb96e4c4c42e68d

parent

00a5f7285706ac4fb0fb264bda1dc4d6c3057f8c

1 files changed, 13 insertions(+), 2 deletions(-)

jump to
M src/panel.csrc/panel.c

@@ -20,6 +20,8 @@ #include <glib.h>

#include <stdio.h> #include <stdlib.h> #include <string.h> +#include <sys/types.h> +#include <unistd.h> #include <X11/Xlib.h> #include <X11/Xutil.h> #include <X11/Xatom.h>

@@ -814,15 +816,24 @@ (int)len);

g_free(name); } + long pid = getpid(); + XChangeProperty(server.display, + p->main_win, + server.atom._NET_WM_PID, + XA_CARDINAL, + 32, + PropModeReplace, + (unsigned char *)&pid, + 1); + // Dock - long val = server.atom._NET_WM_WINDOW_TYPE_DOCK; XChangeProperty(server.display, p->main_win, server.atom._NET_WM_WINDOW_TYPE, XA_ATOM, 32, PropModeReplace, - (unsigned char *)&val, + (unsigned char *)&server.atom._NET_WM_WINDOW_TYPE_DOCK, 1); place_panel_all_desktops(p);