mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
idle-inhibit: style adjustments and motivation
This commit is contained in:
parent
87a7afb641
commit
67285c1d57
3 changed files with 23 additions and 11 deletions
|
|
@ -12,14 +12,14 @@ static struct zwp_idle_inhibit_manager_v1_interface idle_inhibit_impl;
|
|||
|
||||
static struct zwp_idle_inhibitor_v1_interface idle_inhibitor_impl;
|
||||
|
||||
struct wlr_idle_inhibit_manager_v1 *
|
||||
static struct wlr_idle_inhibit_manager_v1 *
|
||||
wlr_idle_inhibit_manager_v1_from_resource(struct wl_resource *resource) {
|
||||
assert(wl_resource_instance_of(resource, &zwp_idle_inhibit_manager_v1_interface,
|
||||
&idle_inhibit_impl));
|
||||
return wl_resource_get_user_data(resource);
|
||||
}
|
||||
|
||||
struct wlr_idle_inhibitor_v1 *
|
||||
static struct wlr_idle_inhibitor_v1 *
|
||||
wlr_idle_inhibitor_v1_from_resource(struct wl_resource *resource) {
|
||||
assert(wl_resource_instance_of(resource, &zwp_idle_inhibitor_v1_interface,
|
||||
&idle_inhibitor_impl));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue