summaryrefslogtreecommitdiff
path: root/emerald
diff options
context:
space:
mode:
authorkristian <kristian@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-12-05 14:17:22 +0000
committerkristian <kristian@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-12-05 14:17:22 +0000
commitb9d16fb3887d31650353e2f83b0d3662f79b8782 (patch)
treef5e39382a297a9810ce766b1e782ccc002c36eda /emerald
parent733396576210fb4ddf9ac4b0a5d86371e4fa2ae2 (diff)
downloadmarex-dev-b9d16fb3887d31650353e2f83b0d3662f79b8782.tar.gz
marex-dev-b9d16fb3887d31650353e2f83b0d3662f79b8782.tar.bz2
Add error testing in update_window_decoration_actions. Closes #161 .
git-svn-id: file:///beryl/trunk@1546 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'emerald')
-rw-r--r--emerald/src/main.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/emerald/src/main.c b/emerald/src/main.c
index 1ae2b4b..382220b 100644
--- a/emerald/src/main.c
+++ b/emerald/src/main.c
@@ -3293,7 +3293,16 @@ update_window_decoration_actions (WnckWindow *win)
{
d->actions |= FAKE_WINDOW_ACTION_HELP;
}
- }
+ } else {
+ /* This is an attempt to solve #161
+ * FIXME: Remove or alter the error message when this fix is sufficiently verified.
+ */
+ if(data)
+ XFree((void *) data);
+ fprintf(stderr,"XGetWindowProperty() returned non-success value (%d).\n",result);
+ fprintf(stderr,"Please report this to the development team.\n",result);
+ break;
+ }
}
}