Skip to content

Commit be405d1

Browse files
use pid_t instead of uint64_t for pids
1 parent 39a8017 commit be405d1

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/managers/KeybindManager.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -925,11 +925,11 @@ bool CKeybindManager::handleInternalKeybinds(xkb_keysym_t keysym) {
925925

926926
// Dispatchers
927927
SDispatchResult CKeybindManager::spawn(std::string args) {
928-
const uint64_t PROC = spawnWithRules(args, nullptr);
928+
const pid_t PROC = spawnWithRules(args, nullptr);
929929
return {.success = PROC > 0, .error = std::format("Failed to start process {}", args)};
930930
}
931931

932-
uint64_t CKeybindManager::spawnWithRules(std::string args, PHLWORKSPACE pInitialWorkspace) {
932+
pid_t CKeybindManager::spawnWithRules(std::string args, PHLWORKSPACE pInitialWorkspace) {
933933

934934
args = trim(args);
935935

@@ -941,7 +941,7 @@ uint64_t CKeybindManager::spawnWithRules(std::string args, PHLWORKSPACE pInitial
941941
args = args.substr(args.find_first_of(']') + 1);
942942
}
943943

944-
const uint64_t PROC = spawnRawProc(args, pInitialWorkspace);
944+
const pid_t PROC = spawnRawProc(args, pInitialWorkspace);
945945

946946
if (!RULES.empty()) {
947947
const auto RULESLIST = CVarList(RULES, 0, ';');
@@ -966,11 +966,11 @@ uint64_t CKeybindManager::spawnWithRules(std::string args, PHLWORKSPACE pInitial
966966
}
967967

968968
SDispatchResult CKeybindManager::spawnRaw(std::string args) {
969-
const uint64_t PROC = spawnRawProc(args, nullptr);
969+
const pid_t PROC = spawnRawProc(args, nullptr);
970970
return {.success = PROC > 0, .error = std::format("Failed to start process {}", args)};
971971
}
972972

973-
uint64_t CKeybindManager::spawnRawProc(std::string args, PHLWORKSPACE pInitialWorkspace) {
973+
pid_t CKeybindManager::spawnRawProc(std::string args, PHLWORKSPACE pInitialWorkspace) {
974974
Debug::log(LOG, "Executing {}", args);
975975

976976
const auto HLENV = getHyprlandLaunchEnv(pInitialWorkspace);

src/managers/KeybindManager.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,8 @@ class CKeybindManager {
154154
static void moveWindowOutOfGroup(PHLWINDOW pWindow, const std::string& dir = "");
155155
static void moveWindowIntoGroup(PHLWINDOW pWindow, PHLWINDOW pWindowInDirection);
156156
static void switchToWindow(PHLWINDOW PWINDOWTOCHANGETO, bool preserveFocusHistory = false);
157-
static uint64_t spawnRawProc(std::string, PHLWORKSPACE pInitialWorkspace);
158-
static uint64_t spawnWithRules(std::string, PHLWORKSPACE pInitialWorkspace);
157+
static pid_t spawnRawProc(std::string, PHLWORKSPACE pInitialWorkspace);
158+
static pid_t spawnWithRules(std::string, PHLWORKSPACE pInitialWorkspace);
159159

160160
// -------------- Dispatchers -------------- //
161161
static SDispatchResult closeActive(std::string);

0 commit comments

Comments
 (0)