| 469 | } |
| 470 | |
| 471 | void WMInstance::Update(){ |
| 472 | Poll(); // Poll for commands |
| 473 | |
| 474 | input.Poll(); // Poll input devices |
| 475 | |
| 476 | if(drag && active){ |
| 477 | active->pos = input.mouse.pos - dragOffset; // Move window |
| 478 | if(active->pos.y < 0) active->pos.y = 0; |
| 479 | |
| 480 | redrawBackground = true; |
| 481 | } |
| 482 | |
| 483 | compositor.Paint(); // Render the frame |
| 484 | } |