diff --git a/hyprland-share-picker/main.cpp b/hyprland-share-picker/main.cpp index 1076ad3..5999c29 100644 --- a/hyprland-share-picker/main.cpp +++ b/hyprland-share-picker/main.cpp @@ -36,7 +36,7 @@ MainPicker* mainPickerPtr = nullptr; struct SWindowEntry { std::string name; std::string clazz; - int id = 0; + long unsigned int id = 0; }; std::vector getWindows(const char* env) { @@ -61,8 +61,8 @@ std::vector getWindows(const char* env) { const auto TITLESTR = rolling.substr(CLASSSEPPOS + 5, TITLESEPPOS - 5 - CLASSSEPPOS); try { - result.push_back({TITLESTR, CLASSSTR, std::stoi(IDSTR)}); - } catch (...) { + result.push_back({TITLESTR, CLASSSTR, std::stoll(IDSTR)}); + } catch (std::exception& e) { // silent err }