mirror of
https://github.com/hyprwm/xdg-desktop-portal-hyprland.git
synced 2024-11-22 06:35:57 +01:00
use ulong for id in window entry
This commit is contained in:
parent
8707444cf5
commit
27118ee3d7
1 changed files with 3 additions and 3 deletions
|
@ -36,7 +36,7 @@ MainPicker* mainPickerPtr = nullptr;
|
||||||
struct SWindowEntry {
|
struct SWindowEntry {
|
||||||
std::string name;
|
std::string name;
|
||||||
std::string clazz;
|
std::string clazz;
|
||||||
int id = 0;
|
long unsigned int id = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
std::vector<SWindowEntry> getWindows(const char* env) {
|
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);
|
const auto TITLESTR = rolling.substr(CLASSSEPPOS + 5, TITLESEPPOS - 5 - CLASSSEPPOS);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
result.push_back({TITLESTR, CLASSSTR, std::stoi(IDSTR)});
|
result.push_back({TITLESTR, CLASSSTR, std::stoll(IDSTR)});
|
||||||
} catch (...) {
|
} catch (std::exception& e) {
|
||||||
// silent err
|
// silent err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue