Commit e9a95886 authored by Matthias Clasen's avatar Matthias Clasen

Fix a wrong loop condition

Always a bad sign if your condition doesn't mention
the loop counter... pointed out by Michal Sroczynski.
parent 8e11b318
......@@ -507,7 +507,7 @@ destroy_screens (NdQueue *queue)
gdkwindow = gdk_screen_get_root_window (screen);
gdk_window_remove_filter (gdkwindow, (GdkFilterFunc) screen_xevent_filter, queue->priv->screens[i]);
for (j = 0; i < queue->priv->screens[i]->n_stacks; j++) {
for (j = 0; j < queue->priv->screens[i]->n_stacks; j++) {
g_object_unref (queue->priv->screens[i]->stacks[j]);
queue->priv->screens[i]->stacks[j] = NULL;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment