diff options
author | Michael Cardell Widerkrantz <mc@hack.org> | 2010-07-28 16:57:10 +0200 |
---|---|---|
committer | Michael Cardell Widerkrantz <mc@hack.org> | 2010-07-28 16:57:10 +0200 |
commit | 5f143d33a9bfd5998bc7456119ae637ea28b933c (patch) | |
tree | 35a97d541cc7a8032aa63a98a471a43e7000487a /mcwm.c | |
parent | 0cab6a71bbac93229f8311d726f165dfe35d5af4 (diff) | |
download | mcwm-5f143d33a9bfd5998bc7456119ae637ea28b933c.zip |
Added some comments.
Diffstat (limited to 'mcwm.c')
-rw-r--r-- | mcwm.c | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -647,11 +647,18 @@ void forgetwin(xcb_window_t win) struct item *item; struct client *client; + /* Find window in client list. */ for (item = winlist; item != NULL; item = item->next) { client = item->data; - /* Now forget about it completely and free allocated data. */ + /* + * Forget about it completely and free allocated data. + * + * Note that it might already be freed by handling an + * UnmapNotify, so it isn't necessarily an error if we don't + * find it. + */ PDEBUG("Win %d == client ID %d\n", win, client->id); if (win == client->id) { @@ -2284,9 +2291,6 @@ void events(void) * it. */ forgetwin(e->window); -#if DEBUG - listitems(winlist); -#endif } break; @@ -2531,9 +2535,10 @@ void events(void) xcb_enter_notify_event_t *e = (xcb_enter_notify_event_t *)ev; struct client *client; - PDEBUG("event: Enter notify eventwin %d child %d.\n", + PDEBUG("event: Enter notify eventwin %d, child %d, detail %d.\n", e->event, - e->child); + e->child, + e->detail); /* * If this isn't a normal enter notify, don't bother. |