Bugfix: Perform some bounds checking for snapped containers in fix_colrowspan (Thanks jchome)

This fixes ticket #22
This commit is contained in:
Michael Stapelberg
2009-04-11 14:52:11 +02:00
parent bcbe800720
commit bb8727cf27
2 changed files with 9 additions and 5 deletions

View File

@ -635,6 +635,8 @@ int handle_unmap_notify_event(void *data, xcb_connection_t *conn, xcb_unmap_noti
if (client->container != NULL)
cleanup_table(conn, client->container->workspace);
fix_colrowspan(conn, client->container->workspace);
/* Lets see how many clients there are left on the workspace to delete it if its empty */
bool workspace_empty = true;
FOR_TABLE(client->workspace)