summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJess VanDerwalker <washu@sonic.net>2012-05-07 13:11:42 -0700
committerJess VanDerwalker <washu@sonic.net>2012-05-30 09:48:15 -0700
commit03c81b4c34f7febafb7cd9f2bdc416968535ea76 (patch)
tree4c589f490b79f41d91b01dfd29d55cc49634bc88 /include
parent6a93df24799d563e15dba2944985234f28ba4320 (diff)
libxcwm, xtoq: Checks for valid window image added.
xcwm_image_copy_* return NULL if call to xcb_image_get fails to return a valid image. xcwm_image_copy_damaged returns NULL if damage area has no width or height. Checks for NULL image added to XtoqView draw. Signed-off-by: Jess VanDerwalker <washu@sonic.net> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'include')
-rw-r--r--include/xcwm/image.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/xcwm/image.h b/include/xcwm/image.h
index 6247a52..a425458 100644
--- a/include/xcwm/image.h
+++ b/include/xcwm/image.h
@@ -57,7 +57,8 @@ xcwm_image_copy_full (xcwm_window_t *window);
* Intended for servicing to a client's reaction to a damage notification
* Returns the portion of the window's image that has been damaged.
* @param window The window to get image from
- * @return an xcwm_image_t with partial image window contents
+ * @return an xcwm_image_t with partial image window contents or
+ * NULL if damaged area has zero width or height
*/
xcwm_image_t *
xcwm_image_copy_damaged(xcwm_window_t *window);