mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-03 09:01:40 -05:00
idle_notify_v1: drop trailing spaces
This commit is contained in:
parent
6c78225160
commit
37992cf3b8
1 changed files with 5 additions and 11 deletions
|
|
@ -82,8 +82,7 @@ static void notification_destroy(struct wlr_idle_notification_v1 *notification)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void notification_reset_timer(struct wlr_idle_notification_v1 *notification) {
|
static void notification_reset_timer(struct wlr_idle_notification_v1 *notification) {
|
||||||
if (notification->notifier->inhibited &&
|
if (notification->notifier->inhibited && notification->obey_inhibitors) {
|
||||||
notification->obey_inhibitors) {
|
|
||||||
notification_set_idle(notification, false);
|
notification_set_idle(notification, false);
|
||||||
if (notification->timer != NULL) {
|
if (notification->timer != NULL) {
|
||||||
wl_event_source_timer_update(notification->timer, 0);
|
wl_event_source_timer_update(notification->timer, 0);
|
||||||
|
|
@ -191,10 +190,8 @@ static void notifier_handle_get_idle_notification(
|
||||||
|
|
||||||
static const struct ext_idle_notifier_v1_interface notifier_impl = {
|
static const struct ext_idle_notifier_v1_interface notifier_impl = {
|
||||||
.destroy = resource_handle_destroy,
|
.destroy = resource_handle_destroy,
|
||||||
.get_idle_notification =
|
.get_idle_notification = notifier_handle_get_idle_notification,
|
||||||
notifier_handle_get_idle_notification,
|
.get_input_idle_notification = notifier_handle_get_input_idle_notification,
|
||||||
.get_input_idle_notification =
|
|
||||||
notifier_handle_get_input_idle_notification,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static void notifier_bind(struct wl_client *client, void *data,
|
static void notifier_bind(struct wl_client *client, void *data,
|
||||||
|
|
@ -257,12 +254,9 @@ void wlr_idle_notifier_v1_set_inhibited(struct wlr_idle_notifier_v1 *notifier,
|
||||||
|
|
||||||
void wlr_idle_notifier_v1_notify_activity(struct wlr_idle_notifier_v1 *notifier,
|
void wlr_idle_notifier_v1_notify_activity(struct wlr_idle_notifier_v1 *notifier,
|
||||||
struct wlr_seat *seat) {
|
struct wlr_seat *seat) {
|
||||||
|
|
||||||
struct wlr_idle_notification_v1 *notification;
|
struct wlr_idle_notification_v1 *notification;
|
||||||
wl_list_for_each(notification, ¬ifier->notifications, link) {
|
wl_list_for_each(notification, ¬ifier->notifications, link) {
|
||||||
if (notification->seat == seat &&
|
if (notification->seat == seat && !(notifier->inhibited && notification->obey_inhibitors)) {
|
||||||
!(notifier->inhibited &&
|
|
||||||
notification->obey_inhibitors)) {
|
|
||||||
notification_handle_activity(notification);
|
notification_handle_activity(notification);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue