From c3ec16f494f52dfd670cfd4d4296ddda662f039b Mon Sep 17 00:00:00 2001 From: Gabriel Ford Date: Tue, 23 Apr 2024 00:40:03 +0000 Subject: config: Add More Monitor 'Auto' Positions. (#5670) * Reverse Window Positioning. * Cleanup old comments and logs. * Finish Splitting Left and Right offset. * Forgot to add Auto Left to ConfigManager * Fix problems with auto_left. * Nearly finish up and down. * Finish draft of all four dirs. Testing now. * Change Y value in moveTo for up and down. * Format, comment, and cleanup. * Address Vaxry's feedback. * Add check to see if auto position is first rule. * Run clang-format. --- src/desktop/Window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/desktop/Window.cpp') diff --git a/src/desktop/Window.cpp b/src/desktop/Window.cpp index 29a41976..8dcfc397 100644 --- a/src/desktop/Window.cpp +++ b/src/desktop/Window.cpp @@ -1258,8 +1258,8 @@ std::unordered_map CWindow::getEnv() { std::unordered_map results; // - std::string environFile = "/proc/" + std::to_string(PID) + "/environ"; - std::ifstream ifs(environFile, std::ios::binary); + std::string environFile = "/proc/" + std::to_string(PID) + "/environ"; + std::ifstream ifs(environFile, std::ios::binary); if (!ifs.good()) return {}; -- cgit v1.2.3