From 7bcde781975ddf4a5ce266a9214ba26f563ed063 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sun, 14 Sep 2014 10:30:13 -0700 Subject: Import of vwm3 changes from published source tgz Major changes from vwm2 include: - Introduction of integrated X client process and descendants monitoring in the form of per-window composited overlays. The rendering is done using the Composite, Damage, and Render extensions. When the monitors are visible, vwm3 is a compositing manager. When invisible, vwm3 continues to be an immediate-mode classic X11 minimalist window manager. Monitors are toggled via Mod1-;, Mod1-LeftArrow and Mod1-RightArrow may be used to decrease and increase the sampling frequency, respectively. Mod1-' clears the monitored tasks history for the focused window when monitoring is visible. This feature depends on the CONFIG_CHECKPOINT_RESTORE kernel configuration option for the discovery of descendant processes. Without this kernel option enabled, you'll only get a single process monitored per window; the X client process as indicated by the _NET_WM_PID atom of the window. A library called libvmon has been introduced for the abstraction of lightweight system and process statistics sampling. Since vwm2 received backported features unrelated to monitoring or compositing while vwm3 was developed, there isn't really much difference between the two outside the monitoring context. This isn't to say there isn't much activity in the code, the addition of compositing and monitoring requires a substantial amount of code relative to the scale of vwm[12]. --- ...b7u2-net-wm-pid-set-for-local-clients.patch.txt | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 patches/xorg-server-1.12.4-6+deb7u2-net-wm-pid-set-for-local-clients.patch.txt (limited to 'patches/xorg-server-1.12.4-6+deb7u2-net-wm-pid-set-for-local-clients.patch.txt') diff --git a/patches/xorg-server-1.12.4-6+deb7u2-net-wm-pid-set-for-local-clients.patch.txt b/patches/xorg-server-1.12.4-6+deb7u2-net-wm-pid-set-for-local-clients.patch.txt new file mode 100644 index 0000000..3c12fd2 --- /dev/null +++ b/patches/xorg-server-1.12.4-6+deb7u2-net-wm-pid-set-for-local-clients.patch.txt @@ -0,0 +1,23 @@ +--- xorg-server-1.12.4/dix/window.c 2012-05-17 10:09:02.000000000 -0700 ++++ xorg-server-1.12.4.hacked/dix/window.c 2014-06-04 18:54:33.570855708 -0700 +@@ -840,6 +840,20 @@ + event.u.createNotify.override = pWin->overrideRedirect; + DeliverEvents(pParent, &event, 1, NullWindow); + } ++ ++ if (pScreen->root == pParent) { ++ /* top-level windows with local connections can reliably get _NET_WM_PID set by the server */ ++ LocalClientCredRec *lcc; ++ if (GetLocalClientCreds(client, &lcc) != -1) ++ if (lcc->fieldsSet & LCC_PID_SET) { ++ Atom prop; ++ ++ prop = MakeAtom("_NET_WM_PID", strlen("_NET_WM_PID"), TRUE); ++ dixChangeWindowProperty(client, pWin, prop, ++ XA_CARDINAL, 32, PropModeReplace, ++ 1, &lcc->pid, FALSE); ++ } ++ } + return pWin; + } + -- cgit v1.2.3