~ubuntu-branches/ubuntu/oneiric/gnome-session/oneiric-updates

« back to all changes in this revision

Viewing changes to debian/patches/102_fix_negative_transition_in_idletime.patch

  • Committer: Bazaar Package Importer
  • Author(s): Didier Roche
  • Date: 2011-05-24 12:12:31 UTC
  • mfrom: (1.1.67 upstream) (2.1.10 experimental)
  • Revision ID: james.westby@ubuntu.com-20110524121231-rqzyr2eke6xhk1c8
Tags: 3.0.2-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
Bug-Ubuntu: https://bugs.launchpad.net/bugs/623700
10
10
 
11
11
=== modified file 'gnome-session/gs-idle-monitor.c'
12
 
--- a/gnome-session/gs-idle-monitor.c   2009-07-14 20:36:58 +0000
13
 
+++ b/gnome-session/gs-idle-monitor.c   2010-08-24 22:43:28 +0000
14
 
@@ -459,6 +459,7 @@
15
 
                 watch->xalarm_positive = XSyncCreateAlarm (GDK_DISPLAY (), flags, &attr);
 
12
Index: gnome-session-3.0.0/gnome-session/gs-idle-monitor.c
 
13
===================================================================
 
14
--- gnome-session-3.0.0.orig/gnome-session/gs-idle-monitor.c    2011-03-22 21:31:43.000000000 +0100
 
15
+++ gnome-session-3.0.0/gnome-session/gs-idle-monitor.c 2011-05-23 19:15:21.869552930 +0200
 
16
@@ -463,6 +463,7 @@
 
17
                 watch->xalarm_positive = XSyncCreateAlarm (monitor->priv->display, flags, &attr);
16
18
         }
17
19
 
18
20
+        attr.trigger.wait_value = _int64_to_xsyncvalue (_xsyncvalue_to_int64 (watch->interval) - 1);
19
21
         attr.trigger.test_type = XSyncNegativeTransition;
20
22
         if (watch->xalarm_negative != None) {
21
23
                 g_debug ("GSIdleMonitor: updating alarm for negative transition wait=%lld",
22