diff options
author | Monsta <[email protected]> | 2014-12-31 12:30:43 +0300 |
---|---|---|
committer | infirit <[email protected]> | 2014-12-31 13:29:28 +0100 |
commit | 3e11e7ee15e475874e10ee96456be12a62910a0b (patch) | |
tree | b8fd2bd06f24fd13f24a1a15ca13fffd1e3fa290 | |
parent | 7eb0e133042c48e5e97303c44d56c1ddd9368290 (diff) | |
download | mate-notification-daemon-3e11e7ee15e475874e10ee96456be12a62910a0b.tar.bz2 mate-notification-daemon-3e11e7ee15e475874e10ee96456be12a62910a0b.tar.xz |
daemon: fixed logic in a couple of places
-rw-r--r-- | src/daemon/daemon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c index 8ea1d6b..a702f78 100644 --- a/src/daemon/daemon.c +++ b/src/daemon/daemon.c @@ -338,7 +338,7 @@ static void on_popup_location_changed(GSettings *settings, gchar *key, NotifyDae { int j; - for (j = 0; j < daemon->priv->n_screens; j++) + for (j = 0; j < daemon->priv->screens[i]->n_stacks; j++) { NotifyStack* stack; stack = daemon->priv->screens[i]->stacks[j]; @@ -395,7 +395,7 @@ static void destroy_screens(NotifyDaemon* daemon) gdkwindow = gdk_screen_get_root_window(screen); gdk_window_remove_filter(gdkwindow, (GdkFilterFunc) screen_xevent_filter, daemon->priv->screens[i]); - for (j = 0; i < daemon->priv->screens[i]->n_stacks; j++) + for (j = 0; j < daemon->priv->screens[i]->n_stacks; j++) { notify_stack_destroy(daemon->priv->screens[i]->stacks[j]); daemon->priv->screens[i]->stacks[j] = NULL; |