[Xfce4-commits] <xfce4-notifyd:master> Add debugging statements to previous commit.

Jérôme Guelfucci noreply at xfce.org
Thu Jun 30 23:12:02 CEST 2011


Updating branch refs/heads/master
         to 191157bf9f11f78ea7b40e9f0a9dccdbd4025eeb (commit)
       from 37d571aee335f263d05a117cdf9051aa66b154ad (commit)

commit 191157bf9f11f78ea7b40e9f0a9dccdbd4025eeb
Author: Jérôme Guelfucci <jeromeg at xfce.org>
Date:   Thu Jun 30 23:02:57 2011 +0200

    Add debugging statements to previous commit.

 xfce4-notifyd/xfce-notify-daemon.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/xfce4-notifyd/xfce-notify-daemon.c b/xfce4-notifyd/xfce-notify-daemon.c
index 6e49ab2..cee6560 100644
--- a/xfce4-notifyd/xfce-notify-daemon.c
+++ b/xfce4-notifyd/xfce-notify-daemon.c
@@ -522,8 +522,11 @@ xfce_notify_daemon_get_workarea(GdkScreen *screen,
         gdk_error_trap_push();
         type_hint = gdk_window_get_type_hint(window);
         gdk_flush();
-        if (gdk_error_trap_pop())
+
+        if (gdk_error_trap_pop()) {
+            DBG("Got invalid window in stack, could not get type hint");
             continue;
+        }
 
         if(type_hint == GDK_WINDOW_TYPE_HINT_DOCK) {
             GdkRectangle window_geom, intersection;
@@ -531,8 +534,11 @@ xfce_notify_daemon_get_workarea(GdkScreen *screen,
             gdk_error_trap_push();
             gdk_window_get_frame_extents(window, &window_geom);
             gdk_flush();
-            if (gdk_error_trap_pop())
+
+            if (gdk_error_trap_pop()) {
+                DBG("Got invalid window in stack, could not get frame extents");
                 continue;
+            }
 
             DBG("Got a dock window: x(%d), y(%d), w(%d), h(%d)",
                 window_geom.x,



More information about the Xfce4-commits mailing list