mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
Add input-inhibitor example client
This commit is contained in:
parent
ef4e833f13
commit
3a8c7f283d
5 changed files with 202 additions and 5 deletions
|
|
@ -55,10 +55,8 @@ static void pointer_handle_button(void *data, struct wl_pointer *pointer, uint32
|
|||
zwp_idle_inhibitor_v1_destroy(idle_inhibitor);
|
||||
idle_inhibitor = NULL;
|
||||
} else {
|
||||
idle_inhibitor =
|
||||
zwp_idle_inhibit_manager_v1_create_inhibitor(
|
||||
idle_inhibit_manager,
|
||||
surface);
|
||||
idle_inhibitor = zwp_idle_inhibit_manager_v1_create_inhibitor(
|
||||
idle_inhibit_manager, surface);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -140,7 +138,6 @@ static void xdg_toplevel_handle_close(void *data,
|
|||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
|
||||
static const struct xdg_toplevel_listener xdg_toplevel_listener = {
|
||||
.configure = xdg_toplevel_handle_configure,
|
||||
.close = xdg_toplevel_handle_close,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue