mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 01:50:42 -05:00
Monitor: don't shortcut set_power_save if the value is the same as the old one
We don't get notifications from X11 when the mode is reset, so our cached value can get stale. To work around that, always forward requests to the backend (and let it deal with ignoring the change if wanted) https://bugzilla.gnome.org/show_bug.cgi?id=707649
This commit is contained in:
parent
a6dc454c49
commit
2b1eb206d3
@ -433,9 +433,6 @@ meta_monitor_manager_set_power_save_mode (MetaMonitorManager *manager,
|
|||||||
{
|
{
|
||||||
MetaMonitorManagerClass *klass;
|
MetaMonitorManagerClass *klass;
|
||||||
|
|
||||||
if (mode == manager->power_save_mode)
|
|
||||||
return;
|
|
||||||
|
|
||||||
if (manager->power_save_mode == META_POWER_SAVE_UNKNOWN ||
|
if (manager->power_save_mode == META_POWER_SAVE_UNKNOWN ||
|
||||||
mode == META_POWER_SAVE_UNKNOWN)
|
mode == META_POWER_SAVE_UNKNOWN)
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user