MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / Update

Method Update

System/LemonWM/wm.cpp:471–484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

469}
470
471void 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}

Callers 2

OnOKPressFunction · 0.45
mainFunction · 0.45

Calls 2

PollMethod · 0.45
PaintMethod · 0.45

Tested by

no test coverage detected