Lines Matching defs:manager
57 b->manager = m;
66 hashmap_remove(b->manager->buttons, b->name);
98 static void button_lid_switch_handle_action(Manager *manager, bool is_edge) {
101 assert(manager);
104 if (manager_is_docked_or_external_displays(manager))
105 handle_action = manager->handle_lid_switch_docked;
107 handle_action = manager->handle_lid_switch;
109 manager_handle_action(manager, INHIBIT_HANDLE_LID_SWITCH, handle_action, manager->lid_switch_ignore_inhibited, is_edge);
118 button_lid_switch_handle_action(b->manager, false);
131 r = sd_event_add_post(b->manager->event, &b->check_event_source, button_recheck, b);
164 manager_handle_action(b->manager, INHIBIT_HANDLE_POWER_KEY, b->manager->handle_power_key, b->manager->power_key_ignore_inhibited, true);
179 manager_handle_action(b->manager, INHIBIT_HANDLE_SUSPEND_KEY, b->manager->handle_suspend_key, b->manager->suspend_key_ignore_inhibited, true);
188 manager_handle_action(b->manager, INHIBIT_HANDLE_HIBERNATE_KEY, b->manager->handle_hibernate_key, b->manager->hibernate_key_ignore_inhibited, true);
201 button_lid_switch_handle_action(b->manager, true);
256 r = sd_event_add_io(b->manager->event, &b->io_event_source, b->fd, EPOLLIN, button_dispatch, b);