diff options
| author | BossCode45 <human.cyborg42@gmail.com> | 2024-11-26 15:21:56 +1300 |
|---|---|---|
| committer | BossCode45 <human.cyborg42@gmail.com> | 2024-11-26 15:21:56 +1300 |
| commit | 72300460c1c1fa294cc4d1f1026d203a5adf4d28 (patch) | |
| tree | babbfba0ca2c9994609238b49e281476660a356d /src/config.cpp | |
| parent | 8b48a9cfc4b0795a62a515e2519e7194d1d57347 (diff) | |
| download | YATwm-72300460c1c1fa294cc4d1f1026d203a5adf4d28.tar.gz YATwm-72300460c1c1fa294cc4d1f1026d203a5adf4d28.zip | |
feat: Added a program (YATmsg) to communicate with YATwm
Currently just sends a hello message and nothing else, more to come later
Diffstat (limited to 'src/config.cpp')
| -rw-r--r-- | src/config.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/config.cpp b/src/config.cpp index 3af2491..925e6ea 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -4,13 +4,10 @@ #include <X11/Xlib.h> -#include <cstdio> -#include <cstring> #include <fstream> -#include <ios> +#include <ostream> #include <string> #include <vector> -#include <sstream> #include <unistd.h> #include <fcntl.h> @@ -94,9 +91,8 @@ std::vector<Err> Config::loadFromFile(std::string path) //Probably need something for workspaces and binds too... - string cmd; int line = 0; - while(getline(config, cmd)) + for(string cmd; std::getline(config, cmd);) { line++; if(cmd.size() == 0) |
