summaryrefslogtreecommitdiff
path: root/mate-window-picker-applet/task-item.c
diff options
context:
space:
mode:
Diffstat (limited to 'mate-window-picker-applet/task-item.c')
-rw-r--r--mate-window-picker-applet/task-item.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mate-window-picker-applet/task-item.c b/mate-window-picker-applet/task-item.c
index cafcb2c..366dea0 100644
--- a/mate-window-picker-applet/task-item.c
+++ b/mate-window-picker-applet/task-item.c
@@ -106,9 +106,11 @@ update_hints (TaskItem *item)
/* Set the minimize hint for the window */
gtk_widget_get_allocation (widget, allocation);
- wnck_window_set_icon_geometry (window, x, y,
+ if (allocation) {
+ wnck_window_set_icon_geometry (window, x, y,
allocation->width,
allocation->height);
+ }
}
static gboolean