summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2015-03-12 20:52:47 +0100
committerStefano Karapetsas <[email protected]>2015-03-12 20:52:47 +0100
commitaf208d20149f9e2a1047454843b16a45ef71511f (patch)
treef9f7c6f69e17f89966881e0ddaf179ba29e55531
parent41829cb220454bfed13451c0fe1e5890844321f4 (diff)
parent688b62fb3fa84d6446a74c13c93ddd33d87f5fe3 (diff)
downloadmate-notification-daemon-af208d20149f9e2a1047454843b16a45ef71511f.tar.bz2
mate-notification-daemon-af208d20149f9e2a1047454843b16a45ef71511f.tar.xz
Merge pull request #47 from monsta/patch-1
[1.8] daemon: fixed logic in a couple of places
-rw-r--r--src/daemon/daemon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c
index 49368f2..239bd02 100644
--- a/src/daemon/daemon.c
+++ b/src/daemon/daemon.c
@@ -342,7 +342,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];
@@ -399,7 +399,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;