From 418d5b152bb588235184f0f842aff02516e84d18 Mon Sep 17 00:00:00 2001
From: DreamMaoMao <2523610504@qq.com>
Date: Sun, 23 Mar 2025 08:31:02 +0800
Subject: [PATCH] feat: add quit action to ipc
---
maomao.c | 8 ++++++++
protocols/dwl-ipc-unstable-v2.xml | 5 +++++
2 files changed, 13 insertions(+)
diff --git a/maomao.c b/maomao.c
index aa94ff4..a48e957 100644
--- a/maomao.c
+++ b/maomao.c
@@ -447,6 +447,8 @@ static void dwl_ipc_output_set_tags(struct wl_client *client,
uint32_t tagmask, uint32_t toggle_tagset);
static void dwl_ipc_output_release(struct wl_client *client,
struct wl_resource *resource);
+static void dwl_ipc_output_quit(struct wl_client *client,struct wl_resource *resource);
+
static void focusclient(Client *c, int lift);
static void setborder_color(Client *c);
@@ -2978,6 +2980,12 @@ void dwl_ipc_output_set_layout(struct wl_client *client,
printstatus();
}
+void
+dwl_ipc_output_quit(struct wl_client *client, struct wl_resource *resource)
+{
+ quit(&(Arg){0});
+}
+
void
dwl_ipc_output_set_tags(struct wl_client *client, struct wl_resource *resource, uint32_t tagmask, uint32_t toggle_tagset)
{
diff --git a/protocols/dwl-ipc-unstable-v2.xml b/protocols/dwl-ipc-unstable-v2.xml
index 0a6e7e5..7c2fa27 100644
--- a/protocols/dwl-ipc-unstable-v2.xml
+++ b/protocols/dwl-ipc-unstable-v2.xml
@@ -178,4 +178,9 @@ I would probably just submit raphi's patchset but I don't think that would be po
+
+
+
+
+