#include <string.h> /* memcpy(), memset(), strchr(), strlen() */
#include "../common/rexit.h" /* exit_err() */
#include "../common/try_malloc.h" /* try_malloc() */
-#include "../common/yx_uint16.h" /* struct yx_uint16 */
-#include "windows.h" /* struct Win, get_win_by_id(), get_win_pos_in_order() */
+#include "windows.h" /* Win,yx_uint16, get_win_by_id(),get_win_pos_in_order() */
#include "world.h" /* global world */
* top, fit w's top left corner to that predecessor's top right corner.
*/
struct Win * w_top = w_prev;
- for (;
- w_top->start.y != 0 + sep;
- w_top = get_win_before(w_top->id));
+ for (; w_top->start.y != 0 + sep; w_top = get_win_before(w_top->id));
w->start.x = w_top->start.x + w_top->frame_size.x + sep;
/* If enough space is found below w's predecessor, fit w's top left