mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-03 06:46:38 -04:00
feat: add quit ipc handle
This commit is contained in:
parent
07f4eac17b
commit
67cab097df
2 changed files with 14 additions and 0 deletions
9
maomao.c
9
maomao.c
|
|
@ -468,6 +468,8 @@ static void dwl_ipc_output_set_layout(struct wl_client *client,
|
||||||
static void dwl_ipc_output_set_tags(struct wl_client *client,
|
static void dwl_ipc_output_set_tags(struct wl_client *client,
|
||||||
struct wl_resource *resource,
|
struct wl_resource *resource,
|
||||||
uint32_t tagmask, uint32_t toggle_tagset);
|
uint32_t tagmask, uint32_t toggle_tagset);
|
||||||
|
static void dwl_ipc_output_quit(struct wl_client *client,
|
||||||
|
struct wl_resource *resource);
|
||||||
static void dwl_ipc_output_release(struct wl_client *client,
|
static void dwl_ipc_output_release(struct wl_client *client,
|
||||||
struct wl_resource *resource);
|
struct wl_resource *resource);
|
||||||
static void focusclient(Client *c, int lift);
|
static void focusclient(Client *c, int lift);
|
||||||
|
|
@ -679,6 +681,7 @@ static struct zdwl_ipc_manager_v2_interface dwl_manager_implementation = {
|
||||||
static struct zdwl_ipc_output_v2_interface dwl_output_implementation = {
|
static struct zdwl_ipc_output_v2_interface dwl_output_implementation = {
|
||||||
.release = dwl_ipc_output_release,
|
.release = dwl_ipc_output_release,
|
||||||
.set_tags = dwl_ipc_output_set_tags,
|
.set_tags = dwl_ipc_output_set_tags,
|
||||||
|
.quit = dwl_ipc_output_quit,
|
||||||
.set_layout = dwl_ipc_output_set_layout,
|
.set_layout = dwl_ipc_output_set_layout,
|
||||||
.set_client_tags = dwl_ipc_output_set_client_tags};
|
.set_client_tags = dwl_ipc_output_set_client_tags};
|
||||||
|
|
||||||
|
|
@ -3096,6 +3099,12 @@ dwl_ipc_output_set_tags(struct wl_client *client, struct wl_resource *resource,
|
||||||
view_in_mon(&(Arg){.ui = newtags}, true,monitor);
|
view_in_mon(&(Arg){.ui = newtags}, true,monitor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
dwl_ipc_output_quit(struct wl_client *client, struct wl_resource *resource)
|
||||||
|
{
|
||||||
|
quit(&(Arg){0});
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
dwl_ipc_output_release(struct wl_client *client, struct wl_resource *resource)
|
dwl_ipc_output_release(struct wl_client *client, struct wl_resource *resource)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -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"/>
|
<arg name="is_floating" type="uint" summary="If the selected client is floating. Nonzero is valid, zero invalid"/>
|
||||||
</event>
|
</event>
|
||||||
</interface>
|
</interface>
|
||||||
|
|
||||||
|
<!-- maomao custom -->
|
||||||
|
<request name="quit">
|
||||||
|
<description summary="Quit maomao"/>
|
||||||
|
</request>
|
||||||
</protocol>
|
</protocol>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue