[gnome-packagekit] Be more careful when dealing with windows
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-packagekit] Be more careful when dealing with windows
- Date: Fri, 4 Jan 2013 08:32:56 +0000 (UTC)
commit 798245b6891df540eeb443d2a8eb868c844d9c35
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Jan 3 17:32:03 2013 -0500
Be more careful when dealing with windows
xids may be 0, and in that case, we don't have a window.
Signed-off-by: Richard Hughes <richard hughsie com>
src/gpk-dbus-task.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gpk-dbus-task.c b/src/gpk-dbus-task.c
index 44348ae..c3522a8 100644
--- a/src/gpk-dbus-task.c
+++ b/src/gpk-dbus-task.c
@@ -3295,7 +3295,8 @@ gpk_dbus_task_set_exec (GpkDbusTask *dtask, const gchar *exec)
dtask->priv->parent_icon_name = NULL;
/* is the binary trusted, i.e. can we probe it's window properties */
- if (gpk_dbus_task_path_is_trusted (exec)) {
+ if (gpk_dbus_task_path_is_trusted (exec) &&
+ dtask->priv->parent_window != NULL) {
g_debug ("using application window properties");
/* get from window properties */
x11 = gpk_x11_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]