i3/ipc: provide default sorting for workspaces

This commit is contained in:
outfoxxed 2025-03-27 14:52:58 -07:00
parent d6a4ebc742
commit 2028766e61
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E
2 changed files with 8 additions and 2 deletions

View file

@ -109,6 +109,7 @@ public:
[[nodiscard]] ObjectModel<I3Monitor>* monitors();
[[nodiscard]] ObjectModel<I3Workspace>* workspaces();
signals:
void connected();
void rawEvent(I3IpcEvent* event);
@ -132,6 +133,7 @@ private:
void handleGetWorkspacesEvent(I3IpcEvent* event);
void handleGetOutputsEvent(I3IpcEvent* event);
static void handleRunCommand(I3IpcEvent* event);
static bool compareWorkspaces(I3Workspace* a, I3Workspace* b);
void reconnectIPC();