use ulong for id in window entry

This commit is contained in:
vaxerski 2023-02-03 19:05:59 +00:00
parent 8707444cf5
commit 27118ee3d7

View file

@ -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<SWindowEntry> getWindows(const char* env) {
@ -61,8 +61,8 @@ std::vector<SWindowEntry> 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
}