Update aspect if the number of desks change.

SVN revision: 16894
This commit is contained in:
sebastid 2005-09-24 01:41:19 +00:00 committed by sebastid
parent 39cc0c9ada
commit 5f1db01cf1
1 changed files with 2 additions and 0 deletions

View File

@ -1614,6 +1614,8 @@ _pager_cb_event_zone_desk_count_set(void *data, int type, void *event)
face->xnum = desks_x;
face->ynum = desks_y;
aspect = (double)(face->xnum * face->zone->w) / (double)(face->ynum * face->zone->h);
e_gadman_client_aspect_set(face->gmc, aspect, aspect);
e_gadman_client_resize(face->gmc, face->fw + dw, face->fh + dh);
}
return 1;