GNOME Bugzilla – Bug 748541
events: Ignore some event types when reseting idle time
Last modified: 2015-04-27 17:48:33 UTC
These events don't result from actual hardware events so we shouldn't use them to reset idle time.
Created attachment 302466 [details] [review] events: Ignore some event types when reseting idle time
Created attachment 302467 [details] [review] shell-global: Mark the sync pointer motion event as synthetic This allows mutter to ignore these events for the purpose of keeping idle time.
Review of attachment 302466 [details] [review]: Fine by me.
Running native, when the screen locks we would enter DPMS and immediately come out of it due to this: == Stack trace for context 0x3205120 == AltSwitcher<._sync@resource:///org/gnome/shell/ui/status/system.js:64 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 Indicator<._updatePowerOff@resource:///org/gnome/shell/ui/status/system.js:270 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 Indicator<._sessionUpdated@resource:///org/gnome/shell/ui/status/system.js:175 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 _emit@resource:///org/gnome/gjs/modules/signals.js:124 SessionMode<._sync@resource:///org/gnome/shell/ui/sessionMode.js:205 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 SessionMode<.pushMode@resource:///org/gnome/shell/ui/sessionMode.js:167 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 ScreenShield<.activate@resource:///org/gnome/shell/ui/screenShield.js:1249 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 ScreenShield<.lock@resource:///org/gnome/shell/ui/screenShield.js:1290 wrapper@resource:///org/gnome/gjs/modules/lang.js:169 @resource:///org/gnome/shell/ui/screenShield.js:810
Review of attachment 302467 [details] [review]: Good idea.
Comment on attachment 302466 [details] [review] events: Ignore some event types when reseting idle time c99da71..7bdd698 gnome-3-16 -> gnome-3-16 dd3cf94..d62c595 master -> master Attachment 302466 [details] pushed as d62c595 - events: Ignore some event types when reseting idle time
ed6cb19..f8eb9e7 gnome-3-16 -> gnome-3-16 0e6baec..4f70301 master -> master Attachment 302467 [details] pushed as 4f70301 - shell-global: Mark the sync pointer motion event as synthetic