summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorBossCode45 <human.cyborg42@gmail.com>2023-08-24 12:58:40 +1200
committerBossCode45 <human.cyborg42@gmail.com>2023-08-24 12:58:40 +1200
commit6b5c246a431dcaff119833724137f0716fa2a002 (patch)
tree99ced8d93809cf675b55ea683f28f847e84d9722 /util.h
parent87b7f6c47d8eab8bfe7f126652a88939aac58a6a (diff)
parentd22b5d2363ed8a90960446a209482180f6d27fc0 (diff)
downloadYATwm-6b5c246a431dcaff119833724137f0716fa2a002.tar.gz
YATwm-6b5c246a431dcaff119833724137f0716fa2a002.zip
Merge branch 'keybind-refactor'
Diffstat (limited to 'util.h')
-rw-r--r--util.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/util.h b/util.h
index bdc45d8..66ecf76 100644
--- a/util.h
+++ b/util.h
@@ -4,11 +4,14 @@
#include <string>
#include <X11/Xlib.h>
-#define evNames {0, 0, "KeyPress", "KeyRelease", "ButtonPress", "ButtonRelease", "MotionNotify", "EnterNotify", "LeaveNotify", "FocusIn", "FocusOut", "KeymapNotify", "Expose", "GraphicsExpose", "NoExpose", "VisibilityNotify", "CreateNotify", "DestroyNotify", "UnmapNotify", "MapNotify", "MapRequest", "ReparentNotify", "ConfigureNotify", "ConfigureRequest", "GravityNotify", "ResizeRequest", "CirculateNotify", "CirculateRequest", "PropertyNotify", "SelectionClear", "SelectionRequest", "SelectionNotify", "ColormapNotify", "ClientMessage", "MappingNotify", "GenericEvent", "LASTEvent"};
+
+std::string getEventName(int e);
std::vector<std::string> split (const std::string &s, char delim);
+std::string lowercase(std::string s);
+
struct Globals {
Display*& dpy;