Fix overlaps by actually assigning real indexes...

This commit is contained in:
Kevin Lange 2012-02-13 16:35:57 -06:00
parent c211c61369
commit 86fc80a5e6

View File

@ -189,7 +189,7 @@ void process_window_command (int sig) {
printf("[compositor] New window request\n");
read(pw->command_pipe, &wwt, sizeof(w_window_t));
wwt.wid = _next_wid;
init_window(pw, _next_wid++, wwt.left, wwt.top, wwt.width, wwt.height, 5); //XXX: an actual index
init_window(pw, _next_wid++, wwt.left, wwt.top, wwt.width, wwt.height, _next_wid + 5); //XXX: an actual index
send_window_event(pw, WE_NEWWINDOW, wwt);
break;