Changeset 933aa7d for window.c


Ignore:
Timestamp:
Jun 1, 2010, 12:25:27 AM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
50031f0
Parents:
fe49685
git-author:
David Benjamin <davidben@mit.edu> (05/31/10 22:38:04)
git-committer:
David Benjamin <davidben@mit.edu> (06/01/10 00:25:27)
Message:
Make the unlink logic more explicit

Also, fix up a case where we might incorrectly link a window in some
cases.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • window.c

    rfe49685 r933aa7d  
    193193    if (w->parent->child == w)
    194194      w->parent->child = w->next;
    195   }
    196   w->parent = NULL;
     195    w->parent = NULL;
     196  }
    197197}
    198198
     
    201201  if (w->parent == parent)
    202202    return;
    203   if (w->parent)
    204     _owl_window_unlink(w);
    205 
    206   w->parent = parent;
     203
     204  owl_window_unlink(w);
    207205  if (parent) {
     206    w->parent = parent;
    208207    w->next = parent->child;
    209208    parent->child = w;
Note: See TracChangeset for help on using the changeset viewer.