mirror of
https://github.com/labwc/labwc.git
synced 2025-10-29 05:40:24 -04:00
idle_manager: remove unused parameter and field
wlr_seat isn't used anywhere.
This commit is contained in:
parent
2b26a2c73f
commit
a29bf5366f
3 changed files with 3 additions and 5 deletions
|
|
@ -5,7 +5,7 @@
|
|||
struct wl_display;
|
||||
struct wlr_seat;
|
||||
|
||||
void idle_manager_create(struct wl_display *display, struct wlr_seat *wlr_seat);
|
||||
void idle_manager_create(struct wl_display *display);
|
||||
void idle_manager_notify_activity(struct wlr_seat *seat);
|
||||
|
||||
#endif /* LABWC_IDLE_H */
|
||||
|
|
|
|||
|
|
@ -19,7 +19,6 @@ struct lab_idle_manager {
|
|||
struct wl_listener on_new_inhibitor;
|
||||
struct wl_listener on_destroy;
|
||||
} inhibitor;
|
||||
struct wlr_seat *wlr_seat;
|
||||
};
|
||||
|
||||
static struct lab_idle_manager *manager;
|
||||
|
|
@ -67,11 +66,10 @@ handle_inhibitor_manager_destroy(struct wl_listener *listener, void *data)
|
|||
}
|
||||
|
||||
void
|
||||
idle_manager_create(struct wl_display *display, struct wlr_seat *wlr_seat)
|
||||
idle_manager_create(struct wl_display *display)
|
||||
{
|
||||
assert(!manager);
|
||||
manager = znew(*manager);
|
||||
manager->wlr_seat = wlr_seat;
|
||||
|
||||
manager->ext = wlr_idle_notifier_v1_create(display);
|
||||
|
||||
|
|
|
|||
|
|
@ -661,7 +661,7 @@ server_init(struct server *server)
|
|||
wlr_fractional_scale_manager_v1_create(server->wl_display,
|
||||
LAB_WLR_FRACTIONAL_SCALE_V1_VERSION);
|
||||
|
||||
idle_manager_create(server->wl_display, server->seat.seat);
|
||||
idle_manager_create(server->wl_display);
|
||||
|
||||
server->relative_pointer_manager = wlr_relative_pointer_manager_v1_create(
|
||||
server->wl_display);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue