Author: olivier
Date: 2007-10-28 22:18:37 +0000 (Sun, 28 Oct 2007)
New Revision: 26214

Modified:
   xfwm4/trunk/src/client.c
   xfwm4/trunk/src/display.c
   xfwm4/trunk/src/events.c
Log:
Remove warnings

Modified: xfwm4/trunk/src/client.c
===================================================================
--- xfwm4/trunk/src/client.c    2007-10-28 19:29:01 UTC (rev 26213)
+++ xfwm4/trunk/src/client.c    2007-10-28 22:18:37 UTC (rev 26214)
@@ -1583,7 +1583,7 @@
     screen_info = c->screen_info;
     display_info = screen_info->display_info;
 
-    if (getNetWMUserTime (display_info, c->window, &c->user_time))
+    if (getNetWMUserTime (display_info, c->window, &c->user_time) && 
(c->user_time != 0))
     {
         FLAG_SET (c->flags, CLIENT_FLAG_HAS_USER_TIME);
         myDisplaySetLastUserTime (display_info, c->user_time);

Modified: xfwm4/trunk/src/display.c
===================================================================
--- xfwm4/trunk/src/display.c   2007-10-28 19:29:01 UTC (rev 26213)
+++ xfwm4/trunk/src/display.c   2007-10-28 22:18:37 UTC (rev 26214)
@@ -746,7 +746,7 @@
     g_return_if_fail (display != NULL);
     g_return_if_fail (timestamp != (Time) 0);
 
-    if (!TIMESTAMP_IS_BEFORE(display->last_user_time, timestamp))
+    if (TIMESTAMP_IS_BEFORE(timestamp, display->last_user_time))
     {
         g_warning ("Last user time set back to %u (was %u)", (unsigned int) 
timestamp, (unsigned int) display->last_user_time);
     }

Modified: xfwm4/trunk/src/events.c
===================================================================
--- xfwm4/trunk/src/events.c    2007-10-28 19:29:01 UTC (rev 26213)
+++ xfwm4/trunk/src/events.c    2007-10-28 22:18:37 UTC (rev 26214)
@@ -1988,7 +1988,7 @@
         else if (ev->atom == display_info->atoms[NET_WM_USER_TIME])
         {
             TRACE ("client \"%s\" (0x%lx) has received a NET_WM_USER_TIME 
notify", c->name, c->window);
-            if (getNetWMUserTime (display_info, c->window, &c->user_time))
+            if (getNetWMUserTime (display_info, c->window, &c->user_time) && 
(c->user_time != 0))
             {
                 myDisplaySetLastUserTime (display_info, c->user_time);
                 FLAG_SET (c->flags, CLIENT_FLAG_HAS_USER_TIME);

_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to