summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorBossCode45 <human.cyborg42@gmail.com>2022-12-21 17:25:20 +1300
committerBossCode45 <human.cyborg42@gmail.com>2022-12-21 17:25:20 +1300
commitf7ca0146ba7fed288c34040db0c2eae1683cf461 (patch)
tree76c7bc201dd12d1ae44deaded822d6cb0f78b91c /util.h
parentb116028a645d7db75d93c359462112ac4ad8d5ad (diff)
downloadYATwm-f7ca0146ba7fed288c34040db0c2eae1683cf461.tar.gz
YATwm-f7ca0146ba7fed288c34040db0c2eae1683cf461.zip
Config file working - more tests and potentially features before merge with main though
Diffstat (limited to 'util.h')
-rw-r--r--util.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/util.h b/util.h
index 2268432..666fb40 100644
--- a/util.h
+++ b/util.h
@@ -1 +1,9 @@
-const char* evNames[37] = {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"};
+#pragma once
+
+#include <vector>
+#include <string>
+
+#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::vector<std::string> split (const std::string &s, char delim);