mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2025-10-29 05:40:21 -04:00
feat: add quit action to ipc
This commit is contained in:
parent
4dce162547
commit
418d5b152b
2 changed files with 13 additions and 0 deletions
8
maomao.c
8
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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -178,4 +178,9 @@ I would probably just submit raphi's patchset but I don't think that would be po
|
|||
<arg name="is_floating" type="uint" summary="If the selected client is floating. Nonzero is valid, zero invalid"/>
|
||||
</event>
|
||||
</interface>
|
||||
|
||||
<!-- maomao custom -->
|
||||
<request name="quit">
|
||||
<description summary="Quit maomao"/>
|
||||
</request>
|
||||
</protocol>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue