[gnome-desktop] GnomeRR: force the DPMS mode change to mutter always
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-desktop] GnomeRR: force the DPMS mode change to mutter always
- Date: Tue, 11 Mar 2014 16:33:34 +0000 (UTC)
commit b84f31535f8e006200dcec2ea8c38286756911be
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Mon Mar 10 20:27:53 2014 +0100
GnomeRR: force the DPMS mode change to mutter always
Our cached DPMS mode value can be wrong in face of changes by
other clients we haven't seen yet, so always send the change
to mutter, and let it optimize away if needed (in practice,
it should never optimize, because the only reliable source
of DPMS state is the kernel driver, and several API calls
can reset DPMS without any change notification)
https://bugzilla.gnome.org/show_bug.cgi?id=726055
libgnome-desktop/gnome-rr.c | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)
---
diff --git a/libgnome-desktop/gnome-rr.c b/libgnome-desktop/gnome-rr.c
index 5643cb5..1601b11 100644
--- a/libgnome-desktop/gnome-rr.c
+++ b/libgnome-desktop/gnome-rr.c
@@ -1030,13 +1030,6 @@ gnome_rr_screen_set_dpms_mode (GnomeRRScreen *screen,
g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
- /* set, if the new mode is different */
- ret = gnome_rr_screen_get_dpms_mode (screen, ¤t_mode, error);
- if (!ret)
- return FALSE;
- if (current_mode == mode)
- return TRUE;
-
switch (mode) {
case GNOME_RR_DPMS_ON:
power_save = META_POWER_SAVE_ON;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]