i3/ipc: implement IPC listener to receive arbitrary events

This commit is contained in:
Ala Alkhafaji 2025-11-13 19:43:11 +01:00 committed by outfoxxed
parent fdbb86a06a
commit ab494dd982
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E
14 changed files with 693 additions and 484 deletions

View file

@ -5,6 +5,7 @@
#include <qtypes.h>
#include "connection.hpp"
#include "controller.hpp"
namespace qs::i3::ipc {
@ -40,7 +41,7 @@ class I3Workspace: public QObject {
QML_UNCREATABLE("I3Workspaces must be retrieved from the I3 object.");
public:
I3Workspace(I3Ipc* ipc);
I3Workspace(I3IpcController* ipc);
/// Activate the workspace.
///
@ -72,7 +73,7 @@ signals:
void lastIpcObjectChanged();
private:
I3Ipc* ipc;
I3IpcController* ipc;
QVariantMap mLastIpcObject;