Fix some bugs found by using raster’s wm_torture

This commit is contained in:
Michael Stapelberg
2009-03-07 02:44:46 +01:00
parent 7f17edb4c1
commit 6abcc5f656
2 changed files with 23 additions and 8 deletions

View File

@ -475,6 +475,10 @@ int handle_unmap_notify_event(void *data, xcb_connection_t *conn, xcb_unmap_noti
int handle_windowname_change(void *data, xcb_connection_t *conn, uint8_t state,
xcb_window_t window, xcb_atom_t atom, xcb_get_property_reply_t *prop) {
LOG("window's name changed.\n");
if (prop == NULL) {
LOG("prop == NULL\n");
return 1;
}
Client *client = table_get(byChild, window);
if (client == NULL)
return 1;