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

@ -7,12 +7,12 @@
#include <qtmetamacros.h>
#include <qtypes.h>
#include "connection.hpp"
#include "controller.hpp"
#include "workspace.hpp"
namespace qs::i3::ipc {
I3Monitor::I3Monitor(I3Ipc* ipc): QObject(ipc), ipc(ipc) {
I3Monitor::I3Monitor(I3IpcController* ipc): QObject(ipc), ipc(ipc) {
// clang-format off
this->bFocused.setBinding([this]() { return this->ipc->bindableFocusedMonitor().value() == this; });
// clang-format on