[mutter/cherry-pick-09538422] backends: Update idle time after opening the lid
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/cherry-pick-09538422] backends: Update idle time after opening the lid
- Date: Mon, 7 Feb 2022 18:33:13 +0000 (UTC)
commit f560a2796de5d3e7204a7d731114969191cf2823
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Feb 7 15:54:39 2022 +0100
backends: Update idle time after opening the lid
When handling lid state, we used to update the idle time right after
opening the lid. This behavior changed in commit 14b6c8780d3c due
to a typo/thinko, "if (lid_is_closed)" used to be an early return
condition before updating idle time, now it only updates in that
case.
Restore the original behavior, since this idle time update is key
in having gsd-power light up the display again, this presumably
fixes situations that required extra "light up" hints after suspend.
What it does surely fix is "ninja test" in g-s-d against recent
mutter, since the behavioral change induced a test timeout there.
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2272>
(cherry picked from commit 09538422c6c8f06cd1a30c7da44a8e0d3feed522)
src/backends/meta-backend.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/backends/meta-backend.c b/src/backends/meta-backend.c
index f11ac014c8..033a3d938a 100644
--- a/src/backends/meta-backend.c
+++ b/src/backends/meta-backend.c
@@ -645,7 +645,7 @@ upower_properties_changed (GDBusProxy *proxy,
g_signal_emit (backend, signals[LID_IS_CLOSED_CHANGED], 0,
priv->lid_is_closed);
- if (lid_is_closed)
+ if (!lid_is_closed)
reset_idle_time = TRUE;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]