Merge pull request #39 from JosefUtbult/multiple_window_manager_fix
Fix assertion fail when using a non i3 window manager
This commit is contained in:
@@ -325,7 +325,7 @@ std::string get_socketpath() {
|
||||
pclose(in);
|
||||
str = str_buf;
|
||||
}
|
||||
if (str.back() == '\n') {
|
||||
if (str.length() > 0 && str.back() == '\n') {
|
||||
str.pop_back();
|
||||
}
|
||||
return str;
|
||||
|
||||
Reference in New Issue
Block a user