mirror of
https://github.com/swaywm/sway.git
synced 2025-10-31 22:25:26 -04:00
Clean up memory pool files better
This commit is contained in:
parent
49388eb88b
commit
9a1e95b7da
3 changed files with 27 additions and 21 deletions
|
|
@ -17,11 +17,14 @@ int main(int argc, char **argv) {
|
|||
if (!(state = client_setup(100, 100))) {
|
||||
return -1;
|
||||
}
|
||||
struct output_state *output = state->outputs->items[0];
|
||||
state->width = output->width;
|
||||
state->height = output->height;
|
||||
|
||||
uint8_t r = 100, g = 100, b = 100;
|
||||
|
||||
do {
|
||||
if (client_prerender(state)) {
|
||||
if (client_prerender(state) && state->cairo) {
|
||||
cairo_set_source_rgb(state->cairo, r / 256.0, g / 256.0, b / 256.0);
|
||||
cairo_rectangle(state->cairo, 0, 0, state->width, state->height);
|
||||
cairo_fill(state->cairo);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue