diff options
Diffstat (limited to 'hyprctl/main.cpp')
| -rw-r--r-- | hyprctl/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hyprctl/main.cpp b/hyprctl/main.cpp index 2d1b5a76..097ef5d8 100644 --- a/hyprctl/main.cpp +++ b/hyprctl/main.cpp @@ -59,7 +59,7 @@ std::vector<SInstanceData> instances() { // read lock SInstanceData* data = &result.emplace_back(); - data->id = el.path().string(); + data->id = el.path().filename().string(); try { data->time = std::stoull(data->id.substr(data->id.find_first_of('_') + 1, data->id.find_last_of('_') - (data->id.find_first_of('_') + 1))); |
