Skip to content

Commit 1c8c9d0

Browse files
committed
refactor(niri): declared constructor
Move constructor from hpp to cpp to align with other modules Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
1 parent 7df86d9 commit 1c8c9d0

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

include/modules/niri/backend.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class EventHandler {
1717

1818
class IPC {
1919
public:
20-
IPC() { startIPC(); }
20+
IPC();
2121

2222
void registerForIPC(const std::string& ev, EventHandler* ev_handler);
2323
void unregisterForIPC(EventHandler* handler);

src/modules/niri/backend.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020

2121
namespace waybar::modules::niri {
2222

23+
IPC::IPC() { startIPC(); }
24+
2325
int IPC::connectToSocket() {
2426
const char* socket_path = getenv("NIRI_SOCKET");
2527

0 commit comments

Comments
 (0)