summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2014-06-27 11:45:52 +0200
committerStefano Karapetsas <[email protected]>2014-06-27 11:45:52 +0200
commit32eb62861e32bb175230d8231c4371b11da1fedc (patch)
tree06ece3483efd6670192b5fcff5cbd97aeb0db49b
parent434abab14a314bce1cd262cf68d0ee68bfac2924 (diff)
parentb93ae82a81a562c3190eae72ce09b2c45b88c1b3 (diff)
downloadmate-notification-daemon-32eb62861e32bb175230d8231c4371b11da1fedc.tar.bz2
mate-notification-daemon-32eb62861e32bb175230d8231c4371b11da1fedc.tar.xz
Merge pull request #33 from quark-zju/fix-wnck-workspace-nullmate-notification-daemon-1.9.0
Fix assertion WNCK_IS_WORKSPACE
-rw-r--r--src/daemon/daemon.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c
index c1c7018..49368f2 100644
--- a/src/daemon/daemon.c
+++ b/src/daemon/daemon.c
@@ -1162,6 +1162,11 @@ static gboolean fullscreen_window_exists(GtkWidget* nw)
wnck_workspace = wnck_screen_get_active_workspace (wnck_screen);
+ if (!wnck_workspace)
+ {
+ return FALSE;
+ }
+
for (l = wnck_screen_get_windows_stacked (wnck_screen); l != NULL; l = l->next)
{
WnckWindow *wnck_win = (WnckWindow *) l->data;