From a6998186a3546f9f871e2cab3e994c782bd98a98 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 23 Dec 2020 00:16:02 -0800 Subject: direction: introduce vwm_direction_t enum type Preparations for adding support for reversing {window,desktop} list traversal directions. A subsequent commit will introduce a direction flag of this type to the relevant functions. --- src/Makefile.am | 2 +- src/direction.h | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 src/direction.h (limited to 'src') diff --git a/src/Makefile.am b/src/Makefile.am index cd5d5c7..672a0a5 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1,7 +1,7 @@ SUBDIRS = libvmon bin_PROGRAMS = vwm vmon -vwm_SOURCES = clickety.c composite.c context.c desktop.c key.c launch.c logo.c charts.c screen.c vwm.c window.c xevent.c xserver.c xwindow.c clickety.h composite.h context.h desktop.h key.h launch.h list.h logo.h charts.h screen.h util.h vwm.h window.h xevent.h xserver.h xwindow.h colors.def launchers.def +vwm_SOURCES = clickety.c composite.c context.c desktop.c key.c launch.c logo.c charts.c screen.c vwm.c window.c xevent.c xserver.c xwindow.c clickety.h composite.h context.h desktop.h direction.h key.h launch.h list.h logo.h charts.h screen.h util.h vwm.h window.h xevent.h xserver.h xwindow.h colors.def launchers.def vwm_LDADD = @VWM_LIBS@ libvmon/libvmon.a vwm_CPPFLAGS = @VWM_CFLAGS@ diff --git a/src/direction.h b/src/direction.h new file mode 100644 index 0000000..11019d5 --- /dev/null +++ b/src/direction.h @@ -0,0 +1,9 @@ +#ifndef _DIRECTION_H +#define _DIRECTION_H + +typedef enum _vwm_direction_t { + VWM_DIRECTION_FORWARD, + VWM_DIRECTION_REVERSE +} vwm_direction_t; + +#endif -- cgit v1.2.3