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]. --- Makefile | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index bdf33a5..3da6819 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,30 @@ -vwm: vwm.c vwm.h list.h colors.def launchers.def Makefile - $(CC) -Wall -o vwm vwm.c -lX11 -lXext -lXinerama -lXrandr #-g -DTRACE +CFLAGS=-O2 -D_GNU_SOURCE #-g + +vwm: libvmon/vmon.o \ + vwm.c \ + vwm.h \ + list.h \ + colors.def \ + launchers.def \ + Makefile + $(CC) $(CFLAGS) -Wall -o vwm vwm.c -I. libvmon/vmon.o -lX11 -lXext -lXinerama -lXrandr -lXcomposite -lXdamage -lXrender -lXfixes #-DTRACE + +libvmon/vmon.o: Makefile \ + list.h \ + libvmon/bitmap.h \ + libvmon/vmon.h \ + libvmon/vmon.c \ + libvmon/defs/_begin.def \ + libvmon/defs/_end.def \ + libvmon/defs/sys_stat.def \ + libvmon/defs/sys_vm.def \ + libvmon/defs/proc_stat.def \ + libvmon/defs/proc_vm.def \ + libvmon/defs/proc_io.def \ + libvmon/defs/proc_files.def \ + libvmon/defs/sys_wants.def \ + libvmon/defs/proc_wants.def + $(CC) $(CFLAGS) -c -o libvmon/vmon.o libvmon/vmon.c -I. -Ilibvmon clean: - rm -f vwm + rm -f vwm libvmon/vmon.o -- cgit v1.2.3