summaryrefslogtreecommitdiff
path: root/mate-session/gs-idle-monitor.c
AgeCommit message (Collapse)AuthorFilesLines
2014-11-07gsm: Fix race condition in idle monitorinfirit1-0/+1
In _xsync_alarm_set(), the positive and negative transition intervals are set to the same value. However, the SYNC extension defines the positive transition as set when the counter goes from strictly below the threshold to greater than or equal to the threshold and similarly a negative transition is triggered when the counter goes form strictly greater than the threshold to less than or equal to the threshold. Thus in the current set up there's a chance that the positive transition can trigger, marking the session as idle, and some user input occur on the same click so the IDLETIME count will hit the threshold but not go above so the negative transition will not trigger. Thus the session will not be marked as active. The negative transition threshold should be set to 1ms less than the positive transition to ensure that it always fires. Based on gnome-session commit: 861313503a741f0129611ca005cf6d7c27124b54 From: Christopher Halse Rogers <[email protected]> Gnome bug: https://bugzilla.gnome.org/show_bug.cgi?id=627903
2012-11-13Fix all compile warnings.Scott Balneaves1-5/+5
2012-10-12fix incorrect FSF addressraveit651-1/+1
2012-01-30GDK_DISPLAY() is deprecatedPerberos1-19/+19
2011-12-01moving from https://github.com/perberos/mate-desktop-environmentPerberos1-0/+507