diff options
| author | BossCode45 <human.cyborg42@gmail.com> | 2023-08-24 12:58:40 +1200 |
|---|---|---|
| committer | BossCode45 <human.cyborg42@gmail.com> | 2023-08-24 12:58:40 +1200 |
| commit | 6b5c246a431dcaff119833724137f0716fa2a002 (patch) | |
| tree | 99ced8d93809cf675b55ea683f28f847e84d9722 /util.h | |
| parent | 87b7f6c47d8eab8bfe7f126652a88939aac58a6a (diff) | |
| parent | d22b5d2363ed8a90960446a209482180f6d27fc0 (diff) | |
| download | YATwm-6b5c246a431dcaff119833724137f0716fa2a002.tar.gz YATwm-6b5c246a431dcaff119833724137f0716fa2a002.zip | |
Merge branch 'keybind-refactor'
Diffstat (limited to 'util.h')
| -rw-r--r-- | util.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; |
